Example #1
0
        public void DeleteSMSMessagesTest()
        {
            var messages          = _smsStorage.GetAllSMSMessages().FindAll(msg => msg.From.Equals(PHONE_NUMBER1)).Select(msg => msg.Guid).ToList();
            var remainingCapacity = _smsStorage.GetRemainingCapacity();

            _smsStorage.DeleteSMSMessages(messages);
            Assert.AreEqual(remainingCapacity + messages.Count(), _smsStorage.GetRemainingCapacity());
        }
Example #2
0
 public void DeleteSMSMessages(List <Guid> guids)
 {
     SMSStorage.DeleteSMSMessages(guids);
     Output.WriteLine($"Successfully deleted selected messages.");
 }