Example #1
0
        /// <summary>
        /// Generates auditor server settings
        /// </summary>
        /// <returns>Settings object</returns>
        public static AuditorSettings GetAuditorSettings()
        {
            var settings = new AuditorSettings();

            SetCommonSettings(settings, TestEnvironment.Auditor1KeyPair.SecretSeed);
            settings.ConnectionString = "mongodb://localhost:27001/auditorDBTest?replicaSet=centaurus";
            settings.AlphaPubKey      = TestEnvironment.AlphaKeyPair.AccountId;
            settings.GenesisQuorum    = new string[] { TestEnvironment.Auditor1KeyPair.AccountId };
            settings.Build();
            return(settings);
        }
Example #2
0
        private AuditorSettings GetAuditorSettings(KeyPair keyPair, IEnumerable <string> genesisQuorum)
        {
            var settings = new AuditorSettings
            {
                AlphaPubKey       = AlphaWrapper.Settings.KeyPair.AccountId,
                Secret            = keyPair.SecretSeed,
                NetworkPassphrase = NetworkPassphrase,
                HorizonUrl        = HorizonUrl,
                GenesisQuorum     = genesisQuorum,
                AlphaAddress      = AlphaAddress
            };

            settings.Build();
            return(settings);
        }
Example #3
0
 public LocalTestAuditor()
 {
     m_settings           = AuditorSettings.Load("DatabaseAuditorSettings.xml");
     BuildAuditLogMessage = new T();
 }
Example #4
0
 static TestAuditor()
 {
     AgentTester.EnsureStandardMachineStores();
     m_settings = AuditorSettings.Load("DatabaseAuditorSettings.xml");
 }