Exemplo n.º 1
0
        public void Setup()
        {
            var options = new DbContextOptionsBuilder <AxiomDbContext>()
                          .UseInMemoryDatabase("TestDb").Options;

            this.context = new AxiomDbContext(options);
        }
Exemplo n.º 2
0
 public CategoryService(AxiomDbContext context)
 {
     this.context = context;
 }
Exemplo n.º 3
0
 public CommentService(AxiomDbContext context)
 {
     this.context = context;
 }
Exemplo n.º 4
0
 public RolesController(AxiomDbContext context, RoleManager <IdentityRole <int> > roleManager, UserManager <User> userManager)
 {
     this.context     = context;
     this.roleManager = roleManager;
     this.userManager = userManager;
 }
Exemplo n.º 5
0
 public ArticleService(AxiomDbContext context, ICategoryService categoryService)
 {
     this.context         = context;
     this.categoryService = categoryService;
 }