public void Setup() { var options = new DbContextOptionsBuilder <AxiomDbContext>() .UseInMemoryDatabase("TestDb").Options; this.context = new AxiomDbContext(options); }
public CategoryService(AxiomDbContext context) { this.context = context; }
public CommentService(AxiomDbContext context) { this.context = context; }
public RolesController(AxiomDbContext context, RoleManager <IdentityRole <int> > roleManager, UserManager <User> userManager) { this.context = context; this.roleManager = roleManager; this.userManager = userManager; }
public ArticleService(AxiomDbContext context, ICategoryService categoryService) { this.context = context; this.categoryService = categoryService; }