Exemplo n.º 1
0
 public void Setup()
 {
     ConfigFileManager.CopyWebConfig();
     ConfigFileManager.CopyConnectionStringsConfig();
     ConfigFileManager.CopyRoadkillConfig();
     SqlServerSetup.RecreateLocalDbData();
 }
Exemplo n.º 2
0
        public void Setup()
        {
            DeleteSqliteBinaries();
            _iisExpress = new IISExpress();
            _iisExpress.Start();

            ConfigFileManager.CopyWebConfig();
            ConfigFileManager.CopyConnectionStringsConfig();
            ConfigFileManager.CopyRoadkillConfig();
            Driver = LaunchChrome();
        }
Exemplo n.º 3
0
        public void TestFixtureSetUp()
        {
            if (!IsAdmin())
            {
                Assert.Fail("In order for these tests to work, you need to run them as an administrator (for LocalDB to work). Try running Visual Studio as an administrator.");
            }

            ConfigFileManager.CopyConnectionStringsConfig();
            SqlCeSetup.CopyDb();
            SqliteSetup.CopyDb();
        }
Exemplo n.º 4
0
        public void TearDown()
        {
            Console.WriteLine("~~~~~~~~~~~~ Installer acceptance tests teardown ~~~~~~~~~~~~");
            string sitePath = Settings.WEB_PATH;

            try
            {
                // Remove any attachment folders used by the installer tests
                string installerTestsAttachmentsPath = Path.Combine(sitePath, "AcceptanceTests");
                Directory.Delete(installerTestsAttachmentsPath, true);
                Console.WriteLine("Deleted temp attachment folders for installer tests");
            }
            catch { }

            // Reset the db and web.config back for all other acceptance tests
            SqlServerSetup.RecreateLocalDbData();
            ConfigFileManager.CopyConnectionStringsConfig();
            Console.WriteLine("Copied databases and web.config back for installer tests");
            Console.WriteLine("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
        }
Exemplo n.º 5
0
 public void TearDown()
 {
     // Reset the web.config back for all other acceptance tests
     ConfigFileManager.CopyConnectionStringsConfig();
 }
 public void TestFixtureSetUp()
 {
     ConfigFileManager.CopyConnectionStringsConfig();
     SqlCeSetup.CopyDb();
     SqliteSetup.CopyDb();
 }