public async void ByAdminId_Not_Exists() { var mock = new ServiceMockFacade <IVenueRepository>(); mock.RepositoryMock.Setup(x => x.ByAdminId(It.IsAny <int>(), It.IsAny <int>(), It.IsAny <int>())).Returns(Task.FromResult <List <Venue> >(new List <Venue>())); var service = new VenueService(mock.LoggerMock.Object, mock.RepositoryMock.Object, mock.ModelValidatorMockFactory.VenueModelValidatorMock.Object, mock.BOLMapperMockFactory.BOLVenueMapperMock, mock.DALMapperMockFactory.DALVenueMapperMock); List <ApiVenueResponseModel> response = await service.ByAdminId(default(int)); response.Should().BeEmpty(); mock.RepositoryMock.Verify(x => x.ByAdminId(It.IsAny <int>(), It.IsAny <int>(), It.IsAny <int>())); }