コード例 #1
0
 public void WhenSearchingForCommunicationsByAnInvalidUser_TheResultShouldBeNull()
 {
     var lookup = new CommunicationsLookupByPerson(GetRequestTestsHelper.InValidPersonId);
     lookup.Find();
     lookup.Succeeded().Should().BeFalse();
     lookup.Result().Should().BeNull();
 }
コード例 #2
0
 public void WhenSearchingForCommunicationsByAValidUser_TheResultShouldNotBeNull()
 {
     var personId = GetRequestTestsHelper.ValidPersonId;
     var lookup = new CommunicationsLookupByPerson(personId);
     lookup.Find();
     lookup.Succeeded().Should().BeTrue();
     lookup.Result().Should().NotBeNull();
 }