public void GetRequestIdShouldReturnNewGuidIfHeaderNotAGuid() { var subject = new HeadersRequest("notaguid"); var result = subject.GetRequestId(); Assert.AreNotEqual(Guid.Empty, result); }
public void GetRequestIdShouldReturnNewGuidIfNoHeader() { var subject = new HeadersRequest(null); var result = subject.GetRequestId(); Assert.AreNotEqual(Guid.Empty, result); }
public void GetRequestIdShouldReturnTheGuidIfSet() { var expectedGuid = new Guid("88887777-6666-5555-4444-333322221111"); var subject = new HeadersRequest(expectedGuid.ToString("N")); var result = subject.GetRequestId(); Assert.AreEqual(expectedGuid, result); }
public void GetRequestIdShouldReturnTheGuidIfSet() { var expectedGuid = new Guid("88887777-6666-5555-4444-333322221111"); var subject = new HeadersRequest(expectedGuid.ToString("N")); var result = subject.GetRequestId(); Assert.AreEqual(expectedGuid, result); }
public void GetRequestIdShouldReturnNewGuidIfNoHeader() { var subject = new HeadersRequest(null); var result = subject.GetRequestId(); Assert.AreNotEqual(Guid.Empty, result); }
public void GetRequestIdShouldReturnNewGuidIfHeaderNotAGuid() { var subject = new HeadersRequest("notaguid"); var result = subject.GetRequestId(); Assert.AreNotEqual(Guid.Empty, result); }