public void CreateExceptionTest() { Exception result = null; try { _aboutManagerFalse.Create("test"); } catch (Exception ex) { result = ex; } Assert.IsNotNull(result); Assert.AreEqual(typeof(Exception), result.GetType()); Assert.AreEqual("Unable to create DTO", result.Message); }
public void CreateTest() { AboutDto result = _aboutManager.Create("test"); Assert.AreEqual("test", result.Value); Assert.AreEqual(0, result.Id); }
public ActionResult Index() { _aboutManager.Create("Your application description page."); _contactManager.Create("Your contact page."); return(View()); }