public void UpdateStatus_By_SEVERAL_Ids_Method_Updates_Status()
        {
            var storage = new DataBaseReminderStorage(_connectionString);

            // we know that added 5 test awaiting reminders

            var awaitingRemindersIds =
                storage
                .Get(ReminderItemStatus.Awaiting)
                .Select(x => x.Id);

            storage.UpdateStatus(
                awaitingRemindersIds,
                ReminderItemStatus.Failed);

            // also we know that there is 1 more test failed reminder

            Assert.AreEqual(
                6,
                storage.Get(ReminderItemStatus.Failed).Count);
        }
        public void UpdateStatus_By_ONE_Id_Method_Updates_Status()
        {
            var storage = new DataBaseReminderStorage(_connectionString);

            var restrictedReminder = new Core.ReminderItemRestricted()
            {
                Date      = DateTimeOffset.Parse("2019-10-10T00:00+00:00"),
                ContactId = "12345",
                Message   = "testMessage",
                Status    = Core.ReminderItemStatus.Awaiting
            };

            var guid = storage.Add(restrictedReminder);

            Assert.AreEqual(
                ReminderItemStatus.Awaiting,
                storage.Get(guid).Status);

            storage.UpdateStatus(guid, ReminderItemStatus.Ready);

            Assert.AreEqual(
                ReminderItemStatus.Ready,
                storage.Get(guid).Status);
        }