public CardControllerTests() { optionsBuilder = new DbContextOptionsBuilder <FlashcardContext>(); optionsBuilder.UseInMemoryDatabase("UnitTestMemoryDB"); dbContext = new FlashcardContext(optionsBuilder.Options); cardsController = new CardsController(dbContext); }
public UserRepository(FlashcardContext context) : base(context) { InitialRecords(); }
public BaseRepository(FlashcardContext context) { _dbContext = context; }
public DecksController(FlashcardContext context) { _context = context; }
public CardRepository(FlashcardContext context) : base(context) { LoadDefaultItems(); }
public CardsController(FlashcardContext context) => _context = context;