public void Can_Send_Pagination_View_Model()
        {
            // Arrange
            List<RegisteredUser> tempList = new List<RegisteredUser>() {
            new RegisteredUser {RegisteredUserId = 1, Username = "******"},
            new RegisteredUser {RegisteredUserId = 2, Username= "******"},
            new RegisteredUser {RegisteredUserId = 3, Username= "******"},
            new RegisteredUser {RegisteredUserId = 4, Username= "******"},
            new RegisteredUser {RegisteredUserId = 5, Username= "******"}
            };
            MockRegisteredUserRepo tempRepo = new MockRegisteredUserRepo(tempList);

            MockFruitBasketRepo temp3 = new MockFruitBasketRepo();

            // Arrange
            HomeController controller = new HomeController(tempRepo, temp3);
            controller.PageSize = 3;

            // Act
            RegisteredUserViewModel result = (RegisteredUserViewModel)controller.ListRegisteredUsers(2).Model;

            // Assert
            PagingInfo pageInfo = result.PagingInfo;
            Assert.AreEqual(pageInfo.CurrentPage, 2);
            Assert.AreEqual(pageInfo.ItemsPerPage, 3);
            Assert.AreEqual(pageInfo.TotalItems, 5);
            Assert.AreEqual(pageInfo.TotalPages, 2);
        }
        public HomeController(MockRegisteredUserRepo mockRegisteredUserRepo, MockFruitBasketRepo mockFruitBasketRepo)
        {
            RegisteredUserRepo =  mockRegisteredUserRepo;

            FruitBasketRepo = mockFruitBasketRepo;
        }