public void GetDataTest() { var provider = new ProviderMock(); var repository = new RepositoryMock(provider); var record = new TesteEntity() { LastChangeDate = DateTime.UtcNow, RegisterDate = DateTime.UtcNow, Id = Guid.NewGuid(), Status = RecordStatus.Active }; repository.AppenData(record); var result = repository.GetData(e => e.Id == record.Id); Assert.Single(result); }