public static IFixture RegisterInitializer <T>(this IFixture fixture, T instance) where T : IAsyncLifetime
 {
     AsyncContext.Add(instance);
     fixture.Inject(instance);
     return(fixture);
 }
Esempio n. 2
0
 public void Customize(IFixture fixture)
 {
     AsyncContext.Init();
     fixture.Behaviors.Add(new AsyncTransformation());
 }