private void AddTestData() { // Reset database and add some default entries // _alertTypes.DeleteMany(); for (int index = 0; index < 5; index++) { var alertType = new AlertType { Id = index + 1, Name = string.Format("Type{0}", index + 1), Description = string.Format("Test {0}", index + 1), Paramaters = new List<AlertParameter>() }; AddAlertType(alertType); } }
public AlertType AddAlertType(AlertType item) { // throw new NotImplementedException(); _alertTypes.InsertOne(item); return item; }
public bool UpdateAlertType(string id, AlertType item) { throw new NotImplementedException(); }