public void GenericGetAll_ShouldReturnAll() { var licenses = new List <License>() { LicenseCreator.Create(), LicenseCreator.Create(), LicenseCreator.Create(), }; var repo = DeletableEntityRepositoryMock.Get <License>(licenses); var service = new LicenseService(repo.Object); var result = service.GetAll <LicenseViewModel>(); Assert.Equal(3, result.Count); }