i have a task and i must finish it .. still to me unit test please any one can help me to build unit test for this short code ?
public ActionResult Create([Bind(Include = "ID,NAME,DESCRIPTION")] TODO tODO , TODO_MIRROR tODO_MIRROR)
{
if (ModelState.IsValid)
{
db.TODOS.Add(tODO);
db.TODO_MIRRORS.Add(tODO_MIRROR);
db.SaveChanges();
return RedirectToAction("Index");
}
return View(tODO);
}
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Nanddeep NachanRank #38 · 35.2K reputationPosted Mar 8, 2018, 3:49 AM EST
Husam Al-Masri7 reputationPosted Mar 8, 2018, 3:58 AM EST