private OdsRepositoryTestContext() { OdsSettings = new OdsSettings { ApiBaseUrl = "https://fakeodsserver.net/ORD/2-0-0", BuyerOrganisationRoleIds = new[] { "RO98", "RO177", "RO213", "RO272" } }; OdsRepository = new OdsRepository(OdsSettings); }
private ServiceRecipientTestContext() { Settings = new OdsSettings { ApiBaseUrl = "https://fakeodsserver.net/ORD/2-0-0", GetChildOrganisationSearchLimit = 1, GpPracticeRoleId = "RO177", }; Repository = new ServiceRecipientRepository(Settings); Http = new HttpTest(); }
private OdsRepositoryTestContext() { OdsSettings = new OdsSettings { ApiBaseUrl = "https://fakeodsserver.net/ORD/2-0-0", BuyerOrganisationRoleIds = new[] { "RO98", "RO177", "RO213", "RO272" }, }; CachingService.DefaultCacheProvider.Value.Remove("XYZ"); OdsRepository = new OdsRepository(OdsSettings, new CachingService()); }
public OdsRepository(OdsSettings settings, IAppCache appCache) { this.settings = settings ?? throw new ArgumentNullException(nameof(settings)); this.appCache = appCache; }
public OdsRepository(OdsSettings settings) { _settings = settings ?? throw new ArgumentNullException(nameof(settings)); }
public ServiceRecipientRepository(OdsSettings settings) { _settings = settings ?? throw new ArgumentNullException(nameof(settings)); }