public OrganisationServiceTests()
        {
            _organisationProvider.Setup(_ => _.ProviderName).Returns("Fake");
            _organisationProviders = new List <IOrganisationProvider>
            {
                _organisationProvider.Object
            };

            _service = new OrganisationService(_mockDistributedCache.Object, _organisationProviders, _pageHelper.Object, _mockPageContentFactory.Object);

            _searchModel = new OrganisationSearch
            {
                SearchTerm           = "test",
                OrganisationProvider = EOrganisationProvider.Fake
            };
        }
예제 #2
0
 public async Task <HttpResponse <IEnumerable <OrganisationSearchResult> > > SearchAsync(OrganisationSearch model)
 => await GetAsync <IEnumerable <OrganisationSearchResult> >($"api/v1/Organisation/{model.OrganisationProvider}/{model.SearchTerm}");