public void Paged_Remove() { // Arrange var items = new[] { new User(Guid.NewGuid(), "one", "one"), new User(Guid.NewGuid(), "two", "two") }; var page = 2; var quantity = 4; var total = 6; var paged = new Paged <User>(items, page, quantity, total); // Act paged.Remove(items.First()); // Assert paged.Count().Should().Be(1); paged.First().Should().BeEquivalentTo(items.Last()); }
public void Paged_Remove() { // Arrange var items = new[] { EntityHelper.CreateUser("one"), EntityHelper.CreateUser("two") }; var page = 2; var quantity = 4; var total = 6; var paged = new Paged <PimsUser>(items, page, quantity, total); // Act paged.Remove(items.First()); // Assert paged.Count().Should().Be(1); paged.First().Should().BeEquivalentTo(items.Last()); }