Beispiel #1
0
        public void testCheckRecordContent()
        {
            Stack<CCallRecord> list = _callLogger.getList();
              Assert.AreEqual(0, list.Count);
              CCallRecord rec = new CCallRecord();
              rec.Count = 1;
              rec.Duration = new TimeSpan(0,0,4);
              rec.Name = "test";
              rec.Number = "1234";
              rec.Time = new DateTime(2007,7,20,11,50,45);
              rec.Type = ECallType.EDialed;
              list.Push(rec);
              Assert.AreEqual(1, list.Count);

              CCallRecord realrec = list.Peek();
              Assert.AreEqual(1, realrec.Count);
              Assert.AreEqual(4, realrec.Duration.Seconds);
              Assert.AreEqual("test", realrec.Name);
              Assert.AreEqual("1234", realrec.Number);
              Assert.AreEqual(2007, realrec.Time.Year);
              Assert.AreEqual(7,realrec.Time.Month);
              Assert.AreEqual(20, realrec.Time.Day);
              Assert.AreEqual(11,realrec.Time.Hour);
              Assert.AreEqual(50, realrec.Time.Minute);
              Assert.AreEqual(45, realrec.Time.Second);
              Assert.AreEqual(ECallType.EDialed, realrec.Type);
        }
Beispiel #2
0
        public void testAddCallRecords()
        {
            Stack<CCallRecord> list = _callLogger.getList();
              Assert.AreEqual(0, list.Count);

              CCallRecord rec = new CCallRecord();
              rec.Count = 1;
              rec.Duration = new TimeSpan(0, 0, 4);
              rec.Name = "test";
              rec.Number = "1234";
              rec.Time = new DateTime(2007, 7, 20, 11, 50, 45);
              rec.Type = ECallType.EDialed;

              _callLogger.addCall(rec.Type,rec.Number,rec.Name,rec.Time,rec.Duration);
              Assert.AreEqual(1, list.Count);
        }
Beispiel #3
0
 public void deleteRecord(CCallRecord record)
 {
 }