public void Setup()
        {
            var dbContextoptions = new DbContextOptionsBuilder <ModelContext>().UseInMemoryDatabase("TestDB");

            db = new ModelContext(dbContextoptions.Options);
            db.Database.EnsureCreated();
            roundCard = new RoundCardService();
        }
Esempio n. 2
0
 public CardController(RoundCardService roundCard, ModelContext dbContext)
 {
     this.roundCardService = roundCard;
     this.db = dbContext;
 }