public async Task When_GetGoalsDataWithNoContent_Return_EmptyList() { var restClient = Substitute.For <IRestClient>(); restClient.LastResponse = new RestClient.APIResponse(new HttpResponseMessage(HttpStatusCode.NoContent)); DssService = new DssService(restClient, DssSettings, Logger); var result = await DssService.GetGoals("customer", "interactionid", "actionplanid"); result.Count.Should().Be(0); }
public async Task When_GetGoalsData_ReturnGoalsList() { var result = await DssService.GetGoals("customer", "interactionid", "actionplanid"); result.Count.Should().Be(4); }