public void AndProviderUkprnIsNotNull_ThenProviderUkprnWritten() { var ukprn = 88888888; var parameters = new VacancySearchParameters { Ukprn = ukprn }; var formattedParams = parameters.ToString(); formattedParams.Should().Contain($"{nameof(parameters.Ukprn)}: {ukprn}{Environment.NewLine}"); }
public void AndDistanceInMilesIsNotNull_ThenDistanceInMilesWritten() { var distanceInMiles = 234; var parameters = new VacancySearchParameters { DistanceInMiles = distanceInMiles }; var formattedParams = parameters.ToString(); formattedParams.Should().Contain($"{nameof(parameters.DistanceInMiles)}: {distanceInMiles}{Environment.NewLine}"); }
public void AndLongitudeIsNotNull_ThenLongitudeWritten() { var longitude = 23.234; var parameters = new VacancySearchParameters { Longitude = longitude }; var formattedParams = parameters.ToString(); formattedParams.Should().Contain($"{nameof(parameters.Longitude)}: {longitude}{Environment.NewLine}"); }
public void AndDistanceInMilesIsNull_ThenDistanceInMilesNotWritten() { var distanceInMiles = (int?)null; var parameters = new VacancySearchParameters { DistanceInMiles = distanceInMiles }; var formattedParams = parameters.ToString(); formattedParams.Should().NotContain($"{nameof(parameters.DistanceInMiles)}: {distanceInMiles}"); }
public void AndLongitudeIsNull_ThenLongitudeNotWritten() { var longitude = (double?)null; var parameters = new VacancySearchParameters { Longitude = longitude }; var formattedParams = parameters.ToString(); formattedParams.Should().NotContain($"{nameof(parameters.Longitude)}: {longitude}"); }