Пример #1
0
 public void TestInitialize()
 {
     _smsStorage.DeleteAllSMSMessages();
     for (var i = 0; i < PHONE_NUMBER1_COUNT; i++)
     {
         _smsStorage.SaveSMSMessage(new SMSMessage(Guid.NewGuid(), PHONE_NUMBER1, TEXT_MESSAGE + i, DateTime.Now, _smsProvider1));
     }
     for (var i = 0; i < PHONE_NUMBER2_COUNT; i++)
     {
         _smsStorage.SaveSMSMessage(new SMSMessage(Guid.NewGuid(), PHONE_NUMBER2, TEXT_MESSAGE + i, DateTime.Now, _smsProvider2));
     }
 }
Пример #2
0
 public void DeleteAllSMSMessages()
 {
     SMSStorage.DeleteAllSMSMessages();
     Output.WriteLine($"Successfully deleted all messages.");
 }