public void Setup() { AutoMapperConfig.CreateMaps(); var server = new Mock <HttpServerUtilityBase>(); server.Setup(s => s.MapPath(It.IsAny <string>())).Returns <string>(x => x); var configuration = WebConfiguration.Load(server.Object); _homeController = new HomeController(configuration, new Mock <ILog>().Object, null); _contentController = new ContentController(configuration); }