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