public void HasAdminPasswordReturnsFalseIfAdminPasswordFileDoesNotExists()
        {
            // Arrange
            Mock <VirtualPathProvider> mockVpp = new Mock <VirtualPathProvider>();

            mockVpp.Setup(m => m.FileExists("~/App_Data/Admin/Password.config")).Returns(false);

            // Act
            bool hasPassword = AdminSecurity.HasAdminPassword(mockVpp.Object);

            // Assert
            Assert.False(hasPassword);
        }
        public override void Execute()
        {
            WriteLiteral("\r\n\r\n");


            WriteLiteral("\r\n");



            #line 5 "..\..\EnableInstructions.cshtml"

            Page.Title = AdminResources.SecurityTitle;

            if (AdminSecurity.HasAdminPassword())
            {
                SiteAdmin.RedirectToHome(Response);
                return;
            }

            string url = SiteAdmin.GetRedirectUrl(SiteAdmin.AdminVirtualPath);



            #line default
            #line hidden
            WriteLiteral("\r\n");



            #line 16 "..\..\EnableInstructions.cshtml"
            Write(Html.Raw(AdminResources.EnableInstructions));


            #line default
            #line hidden
            WriteLiteral("\r\n<br />\r\n<p>\r\n    ");



            #line 19 "..\..\EnableInstructions.cshtml"
            Write(Html.Raw(String.Format(CultureInfo.CurrentCulture, AdminResources.ContinueAfterEnableText, Html.Encode(Href(url)))));


            #line default
            #line hidden
            WriteLiteral("\r\n</p>\r\n\r\n");
        }