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); }
public bool RequestContainsString(string url, string content) { return(_navigation.GetEndpointDriver().GetHtml(url).Source().Contains(content)); }
public void can_get_with_no_body() { theDriver.GetEndpointDriver().ReadTextFrom <SayHelloController>(x => x.Hello()) .ShouldStartWith("Hello"); }