public void ReminderRemove(long ChatId) { for (int i = 0; i < RemindersList.Count; i++) { if (RemindersList[i].ChatId == ChatId) { RemindersList.RemoveAt(i); } } }
public void Map_CanMapRemindersList_ToRemindersData() { var remindersData = new RemindersList { Overrides = new List <Reminder> { new Reminder() }, UseDefault = true }; var actual = this.Mapper.Map <GoogleRemindersList>(remindersData); Assert.IsNotNull(actual); Assert.AreEqual(remindersData.Overrides.Count, actual.Overrides.Count); Assert.AreEqual(remindersData.UseDefault, actual.UseDefault); }
public void ReminderAdd(ReminderWeatherForecast reminderWeatherForecast) { RemindersList.Add(reminderWeatherForecast); }