GetIncompleteActionPlanResources_returns_empty_list_if_no_incomplete_learning_log_items_found() { // Given const int delegateId = 1; var invalidLearningLogItems = Builder <LearningLogItem> .CreateListOfSize(3) .All().With(i => i.CompletedDate = null).And(i => i.ArchivedDate = null) .And(i => i.LearningHubResourceReferenceId = 1) .TheFirst(1).With(i => i.Activity = "completed").And(i => i.CompletedDate = DateTime.UtcNow) .TheNext(1).With(i => i.Activity = "removed").And(i => i.ArchivedDate = DateTime.UtcNow) .TheNext(1).With(i => i.Activity = "no resource link").And(i => i.LearningHubResourceReferenceId = null) .Build(); A.CallTo(() => learningLogItemsDataService.GetLearningLogItems(delegateId)) .Returns(invalidLearningLogItems); // When var result = await actionPlanService.GetIncompleteActionPlanResources(delegateId); // Then result.Should().BeEmpty(); A.CallTo(() => learningHubApiClient.GetBulkResourcesByReferenceIds(A <IEnumerable <int> > ._)) .MustNotHaveHappened(); }