public void ThenTheResultIsAsExpectedForARangeWithOnlyStartDate() { var query = new SpecialOwnerQuery { CreationDateRange = new DateRange(new DateTime(2020, 04, 25), null) }; var actual = _sut.Query(query); AssertResult(_specialOwners, 5, actual); }
public void ThenTheResultIsAsExpected() { var actual = _sut.Query().ToList(); Assert.AreEqual(_specialOwners.Count, actual.Count); foreach (var expectedDto in _specialOwners) { var actualDto = actual.Single(x => x.Id == expectedDto.Id); Assert.AreEqual(expectedDto, actualDto); } }
public void ThenTheResultIsAsExpected() { var actual = _sut.Query(new SpecialOwnerQuery { Name = "special1" }); Assert.AreEqual(2, actual.Count()); foreach (var actualDto in actual) { var expectedDto = _specialOwners.Single(x => x.Id == actualDto.Id); Assert.AreEqual(expectedDto, actualDto); } }
public void ThenTheResultIsAsExpected() { var actual = _sut.Query(new SpecialOwnerQuery { CreationDate = new DateTime(2020, 04, 25) }); Assert.AreEqual(5, actual.Count()); foreach (var actualDto in actual) { var expectedDto = _specialOwners.Single(x => x.Id == actualDto.Id); Assert.AreEqual(expectedDto, actualDto); } }