public async Task When_GetActionsWithNoContent_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.GetActions("customer", "interactionid", "actionplanid"); result.Count.Should().Be(0); }
public async Task When_GetActionsData_ReturnGetActionsList() { var result = await DssService.GetActions("customer", "interactionid", "actionplanid"); result.Count.Should().Be(3); }