Digitrish.WrapperGenerator
1.0.0.8
dotnet add package Digitrish.WrapperGenerator --version 1.0.0.8
NuGet\Install-Package Digitrish.WrapperGenerator -Version 1.0.0.8
<PackageReference Include="Digitrish.WrapperGenerator" Version="1.0.0.8" />
paket add Digitrish.WrapperGenerator --version 1.0.0.8
#r "nuget: Digitrish.WrapperGenerator, 1.0.0.8"
// Install Digitrish.WrapperGenerator as a Cake Addin #addin nuget:?package=Digitrish.WrapperGenerator&version=1.0.0.8 // Install Digitrish.WrapperGenerator as a Cake Tool #tool nuget:?package=Digitrish.WrapperGenerator&version=1.0.0.8
Scaffold code generator for generating wrapper class to any existing non-testable classes such static classes and .Net libraries like System.IO. Very useful for doing TDD and decoupling dependencies to 3rd party libraries.
Usage: On Package Manager Console type the following command:
Scaffold Wrapper {[Namespace].ClassName}
Examples:
Scaffold Wrapper System.IO.Directory
Scaffold Wrapper System.IO.FileSystemWatcher
Scaffold Wrapper System.IO.File
Note: Reference assemblies must be already referenced to your project before generating wrapper class.
Learn more about Target Frameworks and .NET Standard.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
1.0.0.9
- Change naming of wrapper class by suffixing 2 eg. DateTime --> DateTime2
- Add support for static wrapper only. Example : "Scaffold Wrapper System.DateTime true"
- Fix some formatting.