Ejemplo n.º 1
0
        public void Test_Int_InitCounters_Success()
        {
            CounterRepo counterRepo = new CounterRepo(db);

            var keys        = new string[] { "project", "scenario" };
            var counterList = counterRepo.InitCounters(keys);

            Assert.AreEqual(keys.Length, counterList.Count);
            Assert.IsTrue(counterList.All(c => c.CounterValue == 1));
        }
Ejemplo n.º 2
0
        private void InitCounters()
        {
            CounterRepo counterRepo = new CounterRepo(db);

            counterRepo.InitCounters(new string[] { "project", "scenario" });
        }