public void DBEntityTest() { HYContext db; HYEntity ent = new HYEntity("TEST1"); HYEntity ent2 = null; try { using (db = new HYContext()) { var res = db.Entities.Add(ent); db.SaveChanges(); ent2 = db.Entities.FirstOrDefaultAsync(a => a.Id == ent.Id).Result; } } catch (Exception e) { ent = null; _ = log.LogError(e); } Assert.IsNotNull(ent2); }
public GameService(HYContext context, IMapper mapper) { _context = context; _mapper = mapper; }
public PositionService(HYContext context, IMapper mapper) { _context = context; _mapper = mapper; }
public Userservice(HYContext context, IMapper mapper) { _context = context; _mapper = mapper; }
public PurchaseService(HYContext context) { _context = context; }
public CurrencyService(HYContext context) { _context = context; }