예제 #1
0
            public void ReturnsBadRequestWhenServiceDoesnotExist()
            {
                IHttpActionResult result = controller.Bind("foo", "bar", new CreateBindingRequest {
                    ServiceId = "foobar"
                });

                Assert.IsType <BadRequestErrorMessageResult>(result);
                Assert.Equal("This broker does not support the requested service.", ((BadRequestErrorMessageResult)result).Message);
            }