예제 #1
0
        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}");
        }
예제 #2
0
        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}");
        }
예제 #3
0
        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}");
        }
예제 #4
0
        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}");
        }
예제 #5
0
        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}");
        }