Ejemplo n.º 1
0
        private void ConfigureSettings()
        {
            FilePersistedTestLab.SetDefaultFileLocations();
            var settings = Settings.Instance;

            settings.CaptureRoot           = this.TestContext.TestDeploymentDir;
            settings.EnableCaptureToFolder = true;
        }
Ejemplo n.º 2
0
        public void ConfigureTestLab()
        {
            FilePersistedTestLab.SetDefaultFileLocations();

            if (File.Exists(FileLocations.LastUpdateCheck))
            {
                File.Delete(FileLocations.LastUpdateCheck);
            }
        }
Ejemplo n.º 3
0
        public void OnlyDefaultPassword_ResolveCredentials_ReturnsDefaultPassword()
        {
            FilePersistedTestLab.SetDefaultFileLocations();
            Settings.Instance.DefaultPassword = PASSWORD;
            IGuardedSecurity result  = this.ResolveCredentials(original);
            const string     MESSAGE = "If no values are defined in stored password or credentials, they are resolved from default settings.";

            Settings.Instance.DefaultPassword = string.Empty;
            Assert.AreEqual(PASSWORD, result.Password, MESSAGE);
        }
Ejemplo n.º 4
0
 public void TestInitialize()
 {
     FilePersistedTestLab.SetDefaultFileLocations();
     this.settings = Settings.Instance;
     this.settings.PersistenceType = FilePersistence.TYPE_ID;
     this.passwordRequested        = false;
     this.exitCalled           = false;
     this.fallbackRequested    = false;
     this.authenticationPrompt = new AuthenticationPrompt();
     this.factory = new PersistenceFactory(Settings.Instance, TestConnectionManager.Instance, TestConnectionManager.CreateTestFavoriteIcons());
 }
Ejemplo n.º 5
0
        /// <summary>
        /// Initializes data connectors on beginning of each test.
        /// </summary>
        protected void InitializeTestLab()
        {
            this.RemoveDatabaseFileReadOnly();
            FilePersistedTestLab.SetDefaultFileLocations();
            this.SetDeploymentDirConnectionString();

            // first reset the database password, then continue with other initializations
            this.CheckDatabase = DatabaseConnections.CreateInstance();
            this.CheckDatabase.UpdateMasterPassword(String.Empty);

            this.PrimaryPersistence   = CreateSqlPersistence();
            this.SecondaryPersistence = CreateSqlPersistence();

            this.ClearTestLab(); // because of failed previous tests
        }
Ejemplo n.º 6
0
 public void TestInitialize()
 {
     FilePersistedTestLab.SetDefaultFileLocations();
 }
Ejemplo n.º 7
0
 public static void ClassSetUp(TestContext context)
 {
     FilePersistedTestLab.SetDefaultFileLocations();
 }