public void ProviderGroupedSearch_SearchesForStandardLocationsIfStandardIdPassed()
        {
            const int StandardId = 30;

            _mockProvidersService.Setup(x => x.SearchStandardProviderLocations(StandardId, It.IsAny <Coordinate>(), 1, 10, false, false))
            .Verifiable();

            _sut.GetByApprenticeshipIdAndLatLon(StandardId.ToString(), 10.1, 12.2, 1, 10, false, false);

            _mockProvidersService.Verify();
        }
        public void ApprenticeshipSearch_SearchesForStandardLocationsIfStandardIdPassed()
        {
            const int StandardId = 30;

            _mockProvidersService.Reset();
            _mockProvidersService.Setup(x => x.SearchStandardProviders(StandardId, It.IsAny <Coordinate>(), 1, 20, false, false, It.IsAny <List <DeliveryMode> >(), 0)).Returns(GetStubResults());

            _sut.GetByApprenticeshipIdAndLatLon(StandardId.ToString(), 0.5, 50, deliveryModes: "0, 2");

            _mockProvidersService.Verify(x => x.SearchStandardProviders(StandardId, It.IsAny <Coordinate>(), 1, 20, false, false, It.IsAny <List <DeliveryMode> >(), 0));
        }
Beispiel #3
0
        /// <summary>
        /// Returns the identifier in a standard string format.
        /// <para>
        /// The returned string is in the form '{@code $scheme~$value}'.
        /// This is suitable for use with <seealso cref="#parse(String)"/>.
        /// For example, if the scheme is 'OG-Future' and the value is 'Eurex-FGBL-Mar14'
        /// then the result is 'OG-Future~Eurex-FGBL-Mar14'.
        ///
        /// </para>
        /// </summary>
        /// <returns> a parsable representation of the identifier </returns>
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @ToString @Override public String toString()
        public override string ToString()
        {
            return(standardId.ToString());
        }
        public void ProviderApprenticeshipLocations_SearchesForStandardLocationsIfStandardIdPassed()
        {
            const int StandardId = 30;

            _mockProvidersService.Setup(x => x.GetClosestLocationsForStandard(It.IsAny <long>(), StandardId, It.IsAny <Coordinate>(), 1, 10, false))
            .Verifiable();

            _sut.GetClosestProviderLocationsThatCoverPointForApprenticeship(12345678, StandardId.ToString(), 10.1, 12.2, false, 1, 10);

            _mockProvidersService.Verify();
        }