Exemplo n.º 1
0
        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());
        }
Exemplo n.º 2
0
        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));
        }
Exemplo n.º 3
0
 public void TestFunctionWithHandler_is_set_up(TestFunctionWithHandler sut)
 {
     Assert.That(sut.BusHost, Is.Not.Null);
 }