public void ThenTheResponseMustContainTheDocumentUUID() { RenderDocumentResponse renderDocumentResponse = context.Get<RenderDocumentResponse>("RenderDocumentResponse"); // get the response from dictionary Assert.IsFalse(String.IsNullOrEmpty(renderDocumentResponse.documentUUID), "Render document did not respond with the documentID."); // make the assertion checking if there is not an ID Assert.IsTrue(renderDocumentResponse.documentID != null || renderDocumentResponse.documentID.length() > 0); // make the assertion checking if its not null and its not blank or doesnt have any value context["documentUUID"] = renderDocumentResponse.documentUUID; }
public void ThenTheRenderDocumentServiceMustRunSuccessfully() { RenderDocumentResponse renderDocumentResponse = context.Get<RenderDocumentResponse>("RenderDocumentResponse"); // map the context to the dto Assert.IsTrue(renderDocumentResponse.responseMessage.Equals("Success"), "Render document failed"); // make the assertion based on the response message or any other atribute }