public void Should_Provide_Callbacks_Implicitly_Waiting() { var handler = new CustomAsyncHandler(); var bar = handler.Resolve <Bar>(); Assert.IsNotNull(bar); Assert.IsFalse(bar.HasComposer); Assert.AreEqual(1, bar.Handled); }
public async Task Should_Provide_Callbacks_Implicitly_Async() { var handler = new CustomAsyncHandler(); var bar = await handler.ResolveAsync <Bar>(); Assert.IsNotNull(bar); Assert.IsFalse(bar.HasComposer); Assert.AreEqual(1, bar.Handled); }