Example #1
0
        public bool InvokingJsonService()
        {
            string name    = Guid.NewGuid().ToString();
            var    message = new JsonSerializedMessage()
            {
                Name = name
            };

            var httpResponse = _navigation.GetEndpointDriver().PostJson(message);

            var response = httpResponse.ReadAsJson <JsonSerializedMessage>();

            return(response.Name == name);
        }
Example #2
0
 public bool RequestContainsString(string url, string content)
 {
     return(_navigation.GetEndpointDriver().GetHtml(url).Source().Contains(content));
 }
Example #3
0
 public void can_get_with_no_body()
 {
     theDriver.GetEndpointDriver().ReadTextFrom <SayHelloController>(x => x.Hello())
     .ShouldStartWith("Hello");
 }