public void GlobalSetup()
        {
            var prepareSettings = new AppSettings()
            {
                EncryptionPrivateKey    = MyPrivateKey.ToString(),
                MonitoringServiceClient = new MonitoringServiceClientSettings()
                {
                    MonitoringServiceUrl = "http://localhost:5431"
                }
            };

            var settingsMock = new SettingsMock(_pathToSettings);

            settingsMock.PrepareSettings(prepareSettings);
        }
        public async Task GlobalSetup()
        {
            LaunchSettingsReader.Read();

            _rabbitMqSettings    = RabbitMqSettingsReader.Read();
            _rabbitMqInitializer = new RabbitMqVhostInitializer(_rabbitMqSettings);

            await _rabbitMqInitializer.InitializeAsync();

            _settingsMock = new SettingsMock(_pathToSettings);

            var prepareSettings = new AppSettings
            {
                Db = new DbSettings
                {
                    AzureDataConnString = "empty",
                    LogsConnString      = "empty",
                    MaxTransactionsSavingParallelism = 4
                },
                RabbitMq = new RabbitMqSettings
                {
                    ConnString             = _rabbitMqSettings.GetConnectionString(),
                    MessageConsumersCount  = 1,
                    MessageProcessorsCount = 1,
                    TransactionsBatchSize  = 2
                },
                LastIrreversibleBlockMonitoringPeriod = TimeSpan.FromSeconds(5),
                NodeUrl                 = "http://localhost:7777/api",
                NodeUser                = "******",
                NodePassword            = "******",
                MonitoringServiceClient = new MonitoringServiceClientSettings
                {
                    MonitoringServiceUrl = "http://localhost:5431"
                }
            };

            _settingsMock.PrepareSettings(prepareSettings);
        }
示例#3
0
        public void GlobalSetup()
        {
            var settings = new AppSettings
            {
                Db = new DbSettings
                {
                    AzureDataConnString = "empty",
                    LogsConnString      = "empty"
                },
                HealthMonitoringPeriod = TimeSpan.FromSeconds(10),
                DependenciesInfoCacheExpirationPeriod = TimeSpan.FromMinutes(1),
                NodeUrl                 = "http://localhost:7777/api",
                NodeUser                = "******",
                NodePassword            = "******",
                MonitoringServiceClient = new MonitoringServiceClientSettings()
                {
                    MonitoringServiceUrl = "http://localhost:5431"
                },
            };

            var settingsMock = new SettingsMock(_pathToSettings);

            settingsMock.PrepareSettings(settings);
        }