public void ThenIShouldGetBackInformationOfAllPostcodesChosen()
 {
     /// -- Test Currently failing -- ///
     apiResponse      = RestAPIHelper.GetResponse();
     postCodeResponse = Newtonsoft.Json.JsonConvert.DeserializeObject <PostCodeResponse>(apiResponse.Content);
     Assert.That(postCodeResponse.status, Is.EqualTo(200), "Test StatusCode Not 200");
 }
 public void ThenIShouldGetBackInformationOfMyChosenPostcode()
 {
     apiResponse            = RestAPIHelper.GetResponse();
     postCodeResponse       = Newtonsoft.Json.JsonConvert.DeserializeObject <PostCodeResponse>(apiResponse.Content);
     responsePostCode       = postCodeResponse.result.postcode;
     originalSpacePostcode  = GenericHelper.stringSpaceConveter(inputPostcodes);
     responseSpacePostecode = GenericHelper.responseSpaceConverter(responsePostCode);
     //--ToDo Move Assertions to the Assertions Folder --//
     Assert.That(postCodeResponse.status, Is.EqualTo(200), "Test StatusCode Not 200");
     Assert.That(responseSpacePostecode, Is.EqualTo(originalSpacePostcode));
 }
Example #3
0
 public virtual PostcodeAssertion postCodetheSame(PostCodeResponse newPostcoderesponse, string postcode)
 {
     newPostcoderesponse.result.outcode.ShouldBeSameAs(postcode);
     return(this);
 }
Example #4
0
 public PostcodeAssertion(PostCodeResponse postCodeResponse)
 {
     this.postCodeResponse = postCodeResponse;
 }