public async void LessonXTeachers_Not_Exists() { var mock = new ServiceMockFacade <ILessonRepository>(); mock.RepositoryMock.Setup(x => x.LessonXTeachers(default(int), It.IsAny <int>(), It.IsAny <int>())).Returns(Task.FromResult <List <LessonXTeacher> >(new List <LessonXTeacher>())); var service = new LessonService(mock.LoggerMock.Object, mock.RepositoryMock.Object, mock.ModelValidatorMockFactory.LessonModelValidatorMock.Object, mock.BOLMapperMockFactory.BOLLessonMapperMock, mock.DALMapperMockFactory.DALLessonMapperMock, mock.BOLMapperMockFactory.BOLLessonXStudentMapperMock, mock.DALMapperMockFactory.DALLessonXStudentMapperMock, mock.BOLMapperMockFactory.BOLLessonXTeacherMapperMock, mock.DALMapperMockFactory.DALLessonXTeacherMapperMock); List <ApiLessonXTeacherResponseModel> response = await service.LessonXTeachers(default(int)); response.Should().BeEmpty(); mock.RepositoryMock.Verify(x => x.LessonXTeachers(default(int), It.IsAny <int>(), It.IsAny <int>())); }