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