public void Setup() { _logger = Substitute.For <ILogger <DssService> >(); var mockHandler = DssHelpers.GetMockMessageHandler(DssHelpers.SuccessfulDigitalIdentitiesCustomerUpdateDetails(), statusToReturn: HttpStatusCode.Created); _restClient = new RestClient(mockHandler.Object); _dssSettings = Options.Create(new DssSettings() { ApiKey = "0000dfjsjdsidfs83fds", CustomerApiUrl = "https://this.is.anApi.org.uk/api/Customers/", AccountsTouchpointId = "9000000000", CustomerApiVersion = "V2", CustomerAddressDetailsApiUrl = "https://this.is.anApi.org.uk/api/Customers/{customerId}/Addresses", CustomerAddressDetailsApiVersion = "V2", CustomerContactDetailsApiUrl = "https://this.is.anApi.org.uk/customers/{customerId}/ContactDetails/", CustomerContactDetailsApiVersion = "V2", ActionPlansApiUrl = "SomeAPI", ActionPlansApiVersion = "V2", DigitalIdentitiesPatchByCustomerIdApiUrl = "https://at.api.nationalcareersservice.org.uk/digitalidentities/api/customer/{customerId}", DigitalIdentitiesPatchByCustomerIdApiVersion = "v2" }); }