Do we have any TDD experts here? I have some questions but need an expert.

Recommended Answers

All 2 Replies

You could just ask the questions and see what answers you get. ;)

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();
            }
        }
    }
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.