Пример #1
0
        /// <summary>
        /// The CategoryRepository class only use the methods from the Repository base class
        /// </summary>
        public CategoryRepositoryTests()
        {
            // Use this when using a SQLite InMemory database
            _options = BookStoreHelperTests.BookStoreDbContextOptionsSQLiteInMemory();
            BookStoreHelperTests.CreateDataBaseSQLiteInMemory(_options);

            // Use this when using a EF Core InMemory database
            //_options = BookStoreHelperTests.BookStoreDbContextOptionsEfCoreInMemory();
            //BookStoreHelperTests.CreateDataBaseEfCoreInMemory(_options);
        }
Пример #2
0
 public RepositoryTests()
 {
     _options = BookStoreHelperTests.BookStoreDbContextOptionsSQLiteInMemory();
     BookStoreHelperTests.CreateDataBaseSQLiteInMemory(_options);
 }