コード例 #1
0
        public static SuCDbContext GetDb()
        {
            var dbOptions = new DbContextOptionsBuilder <SuCDbContext>()
                            .UseInMemoryDatabase(databaseName: Guid.NewGuid().ToString())
                            .Options;
            var dbContext = new SuCDbContext(dbOptions);

            return(dbContext);
        }
コード例 #2
0
 public JokesService(SuCDbContext context, IMapper mapper)
 {
     this.context = context;
     this.mapper  = mapper;
 }
コード例 #3
0
 public ProblemsService(SuCDbContext context, IMapper mapper)
 {
     this.context = context;
     this.mapper  = mapper;
 }
コード例 #4
0
 public DiscussionsService(SuCDbContext context, IMapper mapper)
 {
     this.context = context;
     this.mapper  = mapper;
 }