2
Contributors
2
Replies
20
Views
2 Years
Discussion Span
Last Post by DaveAmour
0

Ok sure:

How do I deal with the following in a TDD way - ie write the test first then write the code to pass but in a pure TDD way - ie no integration testing:

    public class UserDb : IUserDb
    {
        public void Add(User user)
        {
            using (var context = new EfContext())
            {
                context.Users.Add(user);

                context.SaveChanges();
            }
        }
    }
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.