예제 #1
0
        public RepositoryTestBase()
        {
            CreatedEntities = new Dictionary <string, List <object> >();

            _distributedCache =
                new MemoryDistributedCache(
                    new OptionsWrapper <MemoryDistributedCacheOptions>(
                        new MemoryDistributedCacheOptions()));

            _efdemoContextMem = InMemorySearchContext();

            //_sqlRepository = new efdemoRepository(
            //    _efdemoContextSql,
            //    _configuration,
            //    _loggingService,
            //    mapper
            //);

            //_memRepository = new efdemoRepository(
            //    _efdemoContextMem,
            //    _configuration,
            //    _loggingService,
            //    mapper
            //);
        }
예제 #2
0
 protected efdemoRepository GetNewRepository(efdemoContext context)
 {
     return(new efdemoRepository(context, _configuration));
 }