public void Init() { Logger = Substitute.For <ILogger <DssService> >(); var mockHandler = DssHelpers.GetMockMessageHandler(DssHelpers.SuccessfulUpdateGoal(), 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); updateGoal = new Models.UpdateGoal() { CustomerId = new Guid(), InteractionId = new Guid(), ActionPlanId = new Guid(), DateGoalShouldBeCompletedBy = DateTime.Now.AddDays(1), GoalStatus = GoalStatus.Achieved, GoalId = new Guid() }; }
public void Init() { base.Setup(DssHelpers.SuccessfulDssSessionDetails()); }
public void Init() { base.Setup(DssHelpers.SuccessfulDssAdviserDetails()); }
public void Init() { base.Setup(DssHelpers.SuccessfulDssActionsList()); }