public void FieldTest() { Field f = new Field("F1","First Field"); Assert.AreEqual(f.Name,"F1"); Assert.AreEqual(f.Description,"First Field"); }
public ActionResult Save(Field field) { if(fieldsCollection != null) { fieldsCollection.Save(field); } return RedirectToAction("Index"); }