I am creating an unit test, but there are many entities. So do I have to insert all entities at database manually or is there any better solution?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Are you looking for something like Moq? You use it to create a Mock objects and Queryable lists of objects so that you don’t need to put fake data into your database to test.