Example #1
0
 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);
     }
 }
Example #2
0
 public AlertType AddAlertType(AlertType item)
 {
     // throw new NotImplementedException();
     _alertTypes.InsertOne(item);
     return item;
 }
Example #3
0
 public bool UpdateAlertType(string id, AlertType item)
 {
     throw new NotImplementedException();
 }