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)); }
private void InitCounters() { CounterRepo counterRepo = new CounterRepo(db); counterRepo.InitCounters(new string[] { "project", "scenario" }); }