public void Setup() { var dbContextoptions = new DbContextOptionsBuilder <ModelContext>().UseInMemoryDatabase("TestDB"); db = new ModelContext(dbContextoptions.Options); db.Database.EnsureCreated(); roundCard = new RoundCardService(); }
public CardController(RoundCardService roundCard, ModelContext dbContext) { this.roundCardService = roundCard; this.db = dbContext; }