public void Home()
        {
            // Arrange
            HomeController controller = new HomeController(config).SetControllerContext("/RowanAdams/", "http://localhost/RowanAdams/Home/Home");

            // Act
            var result = controller.Home() as PartialViewResult;

            // Assert
            Assert.IsNotNull(result);
        }
        public void Index()
        {
            // Arrange
            config.SetAppSetting("base", "/RowanAdams/");
            config.SetAppSetting("apiUrl", "http://localhost/RowanAdams/");
            HomeController controller = new HomeController(config).SetControllerContext("/RowanAdams/", "http://localhost/RowanAdams/Home");

            // Act
            var result = controller.Index() as ViewResult;

            // Assert
            Assert.IsNotNull(result);
            Assert.AreEqual("/RowanAdams/", controller.ViewBag.Base);
            Assert.AreEqual("http://localhost/RowanAdams/", controller.ViewBag.ApiUrl);
        }