Beispiel #1
0
 public static void UseMicrosoftDependencyInjection(
     this Autofaker autofaker,
     IServiceCollection serviceCollection)
 {
     autofaker.Configure(
         new MicrosoftDependencyInjectionInversionOfControlRegistration(serviceCollection));
 }
 public static void UseAutofac(
     this Autofaker autofaker,
     ContainerBuilder containerBuilder)
 {
     autofaker.Configure(
         new AutofacInversionOfControlRegistration(containerBuilder));
 }
 public static void UseStructureMap(
     this Autofaker autofaker,
     IContainer container)
 {
     autofaker.Configure(
         new StructureMapInversionOfControlRegistration(container));
 }
 public static void UseLamar(
     this Autofaker autofaker,
     ServiceRegistry serviceRegistry)
 {
     autofaker.Configure(
         new LamarInversionOfControlRegistration(serviceRegistry));
 }
Beispiel #5
0
 public static void UseNSubstitute(
     this Autofaker autofaker)
 {
     autofaker.Configure(new NSubstituteFakeGenerator());
 }
 public static void UseFakeItEasy(
     this Autofaker autofaker)
 {
     autofaker.Configure(new FakeItEasyFakeGenerator());
 }
Beispiel #7
0
 public static void UseMoq(
     this Autofaker autofaker)
 {
     autofaker.Configure(new MoqFakeGenerator());
 }