public void WhenFindingAddressesByAValidPersonId_ThenTheAddressesShouldNotBeNull() { var addressLookup = new AddressLookupByPerson(GetRequestTestsHelper.ValidPersonId); addressLookup.Find(); addressLookup.Succeeded().Should().BeTrue(); var addresses = addressLookup.Result(); addresses.Should().NotBeNull(); addresses.Count.Should().BeGreaterOrEqualTo(1); }
public void WhenFindingAddressesByAnInvalidPersonId_ThenTheAddressesShouldBeNull() { var addressLookup = new AddressLookupByPerson(GetRequestTestsHelper.InValidPersonId); addressLookup.Find(); addressLookup.Succeeded().Should().BeFalse(); }