public PostRepositoryTests() { SeedDatabase(); _dbContext = ServiceProvider.GetRequiredService <BlogEntityDbContext>(); _uow = ServiceProvider.GetRequiredService <IBlogUnitOfWork>(); _postRepository = (PostRepository)_uow.Posts; }
public AuthorRepository(BlogEntityDbContext dbContext) { _dbContext = dbContext; }
public DatabaseSeed(BlogEntityDbContext context) { _dbContext = context; }
public PostRepository(BlogEntityDbContext dbContext) { _dbContext = dbContext; }
public BlogSettingsRepositoryTests() { _dbContext = ServiceProvider.GetRequiredService <BlogEntityDbContext>(); _uow = ServiceProvider.GetRequiredService <IBlogUnitOfWork>(); _blogSettingsRepository = (BlogSettingsRepository)_uow.BlogSettings; }
public BlogSettingsRepository(BlogEntityDbContext dbContext) { _dbContext = dbContext; }