TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Husam Al-Masri
NA
7
715
how can i create unit test for this code?
Mar 8 2018 6:31 AM
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);
}
Reply
Answers (
2
)
how many days would it take for an Article to be published
How to follow someone and send friend request