public async void ByDataVersion_Not_Exists() { var mock = new ServiceMockFacade<ITenantRepository>(); mock.RepositoryMock.Setup(x => x.ByDataVersion(It.IsAny<byte[]>())).Returns(Task.FromResult<List<Tenant>>(new List<Tenant>())); var service = new TenantService(mock.LoggerMock.Object, mock.RepositoryMock.Object, mock.ModelValidatorMockFactory.TenantModelValidatorMock.Object, mock.BOLMapperMockFactory.BOLTenantMapperMock, mock.DALMapperMockFactory.DALTenantMapperMock); List<ApiTenantResponseModel> response = await service.ByDataVersion(default(byte[])); response.Should().BeEmpty(); mock.RepositoryMock.Verify(x => x.ByDataVersion(It.IsAny<byte[]>())); }