public void ShoulGetTradersTop10Page1() {// Arrange TraderService traderService = new TraderService( this.provider, this.traderRep, this.logger); var traders = new List <Trader>() { { new Trader() { name = "Brian", surname = "Kelly" } }, { new Trader() { name = "Yves", surname = "Guillemot" } }, { new Trader() { name = "Fusajiro", surname = "Yamauchi" } }, { new Trader() { name = "Trip", surname = "Hawkins" } }, { new Trader() { name = "Akio", surname = "Morita" } }, }; traderService.TradersList.Returns(traders); // Act var result = traderService.GetTradersPerPage(10, 1); // Assert Assert.AreEqual(5, result.Count); Assert.AreEqual("Brian", result[0].name); Assert.AreEqual("Kelly", result[0].surname); Assert.AreEqual("Yves", result[1].name); Assert.AreEqual("Guillemot", result[1].surname); Assert.AreEqual("Fusajiro", result[2].name); Assert.AreEqual("Yamauchi", result[2].surname); Assert.AreEqual("Trip", result[3].name); Assert.AreEqual("Hawkins", result[3].surname); Assert.AreEqual("Akio", result[4].name); Assert.AreEqual("Morita", result[4].surname); }