예제 #1
0
    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;
    }
예제 #2
0
 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 
 }