public void Setup()
        {
            controllerContext = new ControllerContext();
            originalViewEngineStub =
                new ViewEngineStub(new List<string>
                                       {
                                           "Index",
                                           "Mobile/Index",
                                           "Mobile/Android/Index",
                                           "Home",
                                           "ViewWithoutPlatformSpecifics",
                                           "Mobile/ViewWithoutPlatformSpecifics",
                                           "~/Views/Account/LogOn.aspx",
                                           "~/Views/Account/Mobile/LogOn.aspx",
                                           "~/Views/Account/WithoutMobileView.aspx"
                                       });
            browserCapabilities = new BrowserCapabilitiesStub();
            deviceRules = MobileViewEngineHelper.CreateDeviceRules(browserCapabilities);
            mobileViewEngine = new MobileViewEngine(originalViewEngineStub, deviceRules);

            IList<IViewEngine> myList = new List<IViewEngine>();
            myList.Add(mobileViewEngine);

            viewEngineCollection = new ViewEngineCollection {mobileViewEngine};
        }
 public void Setup()
 {
     browserCapabilities = new BrowserCapabilitiesStub();
     platformSpecificRule = new PlatformSpecificRule(browserCapabilities, supportedPlatforms);
 }
 public void Setup()
 {
     browserCapabilities = new BrowserCapabilitiesStub();
     mobileDeviceRule = new MobileDeviceRule(browserCapabilities);
 }