Skip to content

Latest commit

 

History

6 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

EFTestData

Example project for easy and auto"magic" test data generation using Entity Framework 6. For full details read my post on https://brosteins.com/2015/08/14/generating-test-data-in-entity-framework

Running the Sample

To test the sample simply do one of the following:

  • Build and run
  • Update-Database from your Package Manager Console

Check the Database

After regenerating the database look for the EFTestData database in your LocalDB and run the following queries to review the test data that was created.

USE EFTestData
SELECT * FROM dbo.Orders
SELECT * FROM dbo.Products
SELECT * FROM dbo.Companies
SELECT * FROM dbo.Users

Try It Out!

Go ahead and add another entity and TestDataFactory and test it out for yourself!

About

Example of easily maintainable test data generation in Entity Framework.

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages