public void Init() { Logger = Substitute.For <ILogger <DssService> >(); var mockHandler = DssHelpers.GetMockMessageHandler(DssHelpers.SuccessfulUpdateActionPlan(), statusToReturn: HttpStatusCode.Created); RestClient = new RestClient(mockHandler.Object); DssSettings = Options.Create(new DssSettings() { ApiKey = "9238dfjsjdsidfs83fds", SessionApiUrl = "https://this.is.anApi.org.uk", CustomerApiVersion = "V3", CustomerApiUrl = "https://this.is.anApi.org.uk", SessionApiVersion = "V3", GoalsApiUrl = "https://this.is.anApi.org.uk", GoalsApiVersion = "V2", ActionsApiUrl = "https://this.is.anApi.org.uk", ActionsApiVersion = "v3", InteractionsApiUrl = "https://this.is.anApi.org.uk", AdviserDetailsApiVersion = "v2", ActionPlansApiUrl = "https://this.is.anApi.org.uk", ActionPlansApiVersion = "v2", AdviserDetailsApiUrl = "https://this.is.anApi.org.uk", TouchpointId = "9000000001" }); _dssWriter = new DssService(RestClient, DssSettings, Logger); updateActionPlan = new ActionPlans.Services.DSS.Models.UpdateActionPlan() { CustomerId = new Guid(), InteractionId = new Guid(), ActionPlanId = new Guid(), DateActionPlanAcknowledged = DateTime.Now }; }