示例#1
0
        public FakeDbContext GetFakeContext()
        {
            var context = new FakeDbContext(this.GetOptions("fakedb"));

            context.Database.EnsureDeleted();
            context.Database.EnsureCreated();

            return(context);
        }
 public BaseRepositoryTests()
 {
     this.fakeDbContext = new DbContextFactory().GetFakeContext();
     this.target        = new BaseRepository <MockEntity>(this.fakeDbContext);
 }