Example #1
0
 public void SetUp()
 {
     Subject = new Query();
     Request = GetRequest("GET", query: new Dictionary <string, string> {
         { "Id", "1" }
     });
     Context = new FakeLambdaContext();
 }
Example #2
0
            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");
            }
Example #3
0
            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();
 }