Ejemplo n.º 1
0
 public void Select_last_5_unknown_calls()
 {
     session.Save(new CallLog {
         Direction = CallDirection.Input, Id2 = IdentificationStatus.Unknow, From = "4722527321"
     });
     session.Save(new CallLog {
         Direction = CallDirection.Input, Id2 = IdentificationStatus.Unknow, From = "4732343644"
     });
     session.Save(new CallLog {
         Direction = CallDirection.Output, Id2 = IdentificationStatus.Unknow, From = "*****@*****.**"
     });
     Assert.That(CallLog.LastCalls(), Is.EquivalentTo(new[] { "4722527321", "4732343644" }));
 }