public async Task FunctionHandlerAsync_stops_bus(TestFunctionWithHandler sut, string payload, ILambdaContext context) { await sut.FunctionHandlerAsync(payload, context); Mock.Get(sut.BusHost).Verify(p => p.StopAsync()); }
public async Task FunctionHandlerAsync_invokes_registered_handler(TestFunctionWithHandler sut, string payload, ILambdaContext context) { await sut.FunctionHandlerAsync(payload, context); Mock.Get(TestHandler.InnerHandler).Verify(p => p.HandleAsync(payload, context)); }
public void TestFunctionWithHandler_is_set_up(TestFunctionWithHandler sut) { Assert.That(sut.BusHost, Is.Not.Null); }