private BlogDbContextWithEntityImplementation GetContext() { var options = new DbContextOptionsBuilder <BlogDbContextWithEntityImplementation>() .UseInMemoryDatabase(databaseName: "BlogPOC") .Options; var context = new BlogDbContextWithEntityImplementation(options); context.Database.EnsureDeleted(); context.Database.EnsureCreated(); return(context); }
private BaseRepository <BaseEntityImplementation> GetRepository(BlogDbContextWithEntityImplementation context) { return(new BaseRepositoryImplementation(context)); }
public BaseRepositoryImplementation(BlogDbContextWithEntityImplementation context) : base(context) { }