Beispiel #1
0
        public RepositoryTest()
        {
            var optionsBuilder = new DbContextOptionsBuilder();

            optionsBuilder.UseInMemoryDatabase("repository_test");
            _context    = new HappyShareContext(optionsBuilder.Options);
            _repository = new Repository <User>(_context);
        }
Beispiel #2
0
 public Repository(HappyShareContext happyShareContext)
 {
     HappyShareContext = happyShareContext;
 }
 public UserRepository(HappyShareContext happyShareContext) : base(happyShareContext)
 {
 }