public async void TestGetFormById() { var testData = GetTestData(); var mockRepo = new Mock <IGenericRepository <Submission> >(); var mockSchemaRepo = new Mock <IGenericRepository <Schema> >(); var mockSession = new Mock <ISessionService>(); mockRepo.Setup(x => x.FindByAsync(x => x.SavedDate < DateTime.Now)).ReturnsAsync(testData); var sut = new SubmissionService(mockRepo.Object, mockSchemaRepo.Object, mockSession.Object); var result = await sut.GetAllSubmissionsAsync(); result.Should().NotBeNull(); result.Count.Should().BeGreaterThan(0); }