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