public void SetUp() { Subject = new Query(); Request = GetRequest("GET", query: new Dictionary <string, string> { { "Id", "1" } }); Context = new FakeLambdaContext(); }
public async Task should_handle_errors() { var request = GetRequest("{ 'Value': 'Foo' }"); var context = new FakeLambdaContext(); var result = await new Command().Handle(request.CommandName("FailCommand"), context); result.ShouldBeError("The command type 'FailCommand' could not be found"); }
public async Task should_work() { var request = GetRequest("{ 'Value': 'Foo' }"); var context = new FakeLambdaContext(); var result = await new Command().Handle(request.CommandName("FooCommand"), context); result.Should().NotBeNull(); }
public void SetUp() { Subject = new Query(); Request = GetRequest("POST", content: "{ 'Id': 1 }"); Context = new FakeLambdaContext(); }