public void GetResourceID_ShouldReturnEmptyGuid() { //------------Setup for test-------------------------- var fetchTests = new FetchTests(); //------------Execute Test--------------------------- var resId = fetchTests.GetResourceID(new Dictionary <string, StringBuilder>()); //------------Assert Results------------------------- Assert.AreEqual(Guid.Empty, resId); }
public void GetResourceID_GivenArgsWithResourceId_ShouldReturnResourceId() { //------------Setup for test-------------------------- var fetchTests = new FetchTests(); var stringBuilder = new StringBuilder(); var resId = Guid.NewGuid(); stringBuilder.Append(resId); //------------Execute Test--------------------------- var requestArgs = new Dictionary <string, StringBuilder> { { "resourceID", stringBuilder } }; //------------Execute Test--------------------------- var resourceID = fetchTests.GetResourceID(requestArgs); //------------Assert Results------------------------- Assert.AreEqual(resId, resourceID); }