Beispiel #1
0
        public void Counts()
        {
            List <InspectCount> cnts = new List <InspectCount>();

            InspectCount cnt = new InspectCount();

            cnt.Counter = "Test1";
            cnt.Value   = 15;
            cnt.LastUTC = DateTime.Parse("1/5/2009 4:23:12 GMT");
            cnts.Add(cnt);

            cnt = new InspectCount();

            cnt.Counter = "Test2";
            cnt.Value   = 1563;
            cnt.LastUTC = DateTime.Parse("1/15/2009 3:35:24 GMT");
            cnts.Add(cnt);

            cnt = new InspectCount();

            cnt.Counter = "Test3";
            cnt.Value   = 532;
            cnt.LastUTC = DateTime.Parse("2/12/2009 15:03:55 GMT");
            cnts.Add(cnt);

            _insp.SetInspectCounts(cnts);

            IList <InspectCount> loaded = _insp.LoadInspectCounts();

            Assert.Equal(loaded, cnts);
        }