Example #1
0
 public CarAPIContext(DBContextOptions options) : base(options)
 {
 }
Example #2
0
        //XUnit creates new instances of test classes, you need to make sure that you seed your db for each class

        public RepoTest()
        {
            options = new DBContextOptionsBuilder <Entity.PPDBContext>()
                      .UseSqlite("Filename=Test.db").Seed();
        }