コード例 #1
0
        public BowlingSystemIntegrationTests()
        {
            var optionsBuilder = new DbContextOptionsBuilder <BengansBowlingHallDbContext>();

            optionsBuilder.UseInMemoryDatabase(Guid.NewGuid().ToString());
            _context    = new BengansBowlingHallDbContext(optionsBuilder.Options);
            _repository = new SqlRepository(_context);
            _system     = new BengansSystem(_repository);
            Seed();
        }
コード例 #2
0
        public BengansSystemUnitTests()
        {
            _system = new BengansSystem(MemoryRepository.Instance);

            Seed();
        }