示例#1
0
        public async Task Does_Save()
        {
            var universeAnalytics = new UniverseAnalytics
            {
                SystemProcessOperationId   = 12,
                GenesisEventCount          = 2,
                EschatonEventCount         = 3,
                TradeReddeerCount          = 4,
                TradeReddeerSubmittedCount = 5,
                StockTickReddeerCount      = 6,
                StockMarketOpenCount       = 7,
                StockMarketCloseCount      = 8,
                UniqueTradersCount         = 9,
                UniqueSecuritiesCount      = 10,
                UniqueMarketsTradedOnCount = 11
            };

            var factory = new ConnectionStringFactory(this._configuration);
            var repo    = new RuleAnalyticsUniverseRepository(factory, this._logger);

            await repo.Create(universeAnalytics);
        }
示例#2
0
        public void Create_NullAnalytics_DoesNotThrow()
        {
            var repo = new RuleAnalyticsUniverseRepository(this._connectionStringFactory, this._logger);

            Assert.DoesNotThrowAsync(() => repo.Create(null));
        }