public void Then_Returns_Expected_Results() { _result.Should().NotBeNull(); _result.Uln.Should().Be(_mockHttpResult.Uln); _result.RegistrationProfileId.Should().Be(_mockHttpResult.RegistrationProfileId); _result.IsRegisteredWithOtherAo.Should().Be(_mockHttpResult.IsRegisteredWithOtherAo); _result.Status.Should().Be(_mockHttpResult.Status); }
public void Then_Returns_Expected_Results(long ukprn, long uln, FindUlnResponse expectedResponse) { var actualResult = RegistrationService.FindUlnAsync(ukprn, uln).Result; if (actualResult == null) { expectedResponse.Should().BeNull(); return; } var expecedStatus = expectedResponse.IsRegisteredWithOtherAo ? RegistrationPathwayStatus.NotSpecified : expectedResponse.Status; actualResult.Uln.Should().Be(expectedResponse.Uln); actualResult.Status.Should().Be(expecedStatus); actualResult.IsRegisteredWithOtherAo.Should().Be(expectedResponse.IsRegisteredWithOtherAo); }