public void Site_CallMethodWithDefaultArgs_ShouldReturnTupleWithPageEqualsOne()
        {
            // Arrange:
            var controller = new MainSiteController(new Mock <IAppConfigurationReader>().Object, new Mock <ILogger>().Object);

            // Act:
            var(_, page) = ((string option, int page))controller.Site().Model;

            // Assert:
            Assert.AreEqual(expected: 1, actual: page);
        }
        public void Site_ProvideMenuOptionAsArgToMethod_ShouldReturnTupleWithProvidedMenuOption()
        {
            // Arrange:
            const string SOME_OPTION = "some option";
            var          controller  = new MainSiteController(new Mock <IAppConfigurationReader>().Object, new Mock <ILogger>().Object);

            // Act:
            var(option, _) = ((string option, int page))controller.Site(menuOption: SOME_OPTION).Model;

            // Assert:
            Assert.AreEqual(expected: SOME_OPTION, actual: option);
        }
        public void Site_ProvidePageNumberAsArgToMethod_ShouldReturnTupleWithProvidedPageNumber()
        {
            // Arrange:
            const int SOME_PAGE  = 3;
            var       controller = new MainSiteController(new Mock <IAppConfigurationReader>().Object, new Mock <ILogger>().Object);

            // Act:
            var(_, page) = ((string option, int page))controller.Site(page: SOME_PAGE).Model;

            // Assert:
            Assert.AreEqual(expected: SOME_PAGE, actual: page);
        }
        public void Site_CallMethodWithDefaultArgs_ShouldReturnTupleWithMenuOptionAsAllCategoryOption()
        {
            // Arrange:
            const string ALL_CATEGORY_OPTION     = "All Category Option";
            var          configurationReaderMock = new Mock <IAppConfigurationReader>();

            configurationReaderMock
            .Setup(reader => reader.GetAllCategoryOptionName())
            .Returns(ALL_CATEGORY_OPTION);
            var controller = new MainSiteController(configurationReaderMock.Object, new Mock <ILogger>().Object);

            // Act:
            var(menuOption, _) = ((string menuOption, int page))controller.Site().Model;

            // Assert:
            Assert.AreEqual(expected: ALL_CATEGORY_OPTION, actual: menuOption);
        }