public static SuCDbContext GetDb() { var dbOptions = new DbContextOptionsBuilder <SuCDbContext>() .UseInMemoryDatabase(databaseName: Guid.NewGuid().ToString()) .Options; var dbContext = new SuCDbContext(dbOptions); return(dbContext); }
public JokesService(SuCDbContext context, IMapper mapper) { this.context = context; this.mapper = mapper; }
public ProblemsService(SuCDbContext context, IMapper mapper) { this.context = context; this.mapper = mapper; }
public DiscussionsService(SuCDbContext context, IMapper mapper) { this.context = context; this.mapper = mapper; }