Пример #1
0
        public RepositoryImp(ApplicationContext context, DataPersistenceHandler persistenceHandler)
        {
            if (context == null) throw new ArgumentNullException("context");
            if (persistenceHandler == null) throw new ArgumentNullException("persistenceHandler");

            _applicationContext = context;
            _persistenceHandler = persistenceHandler;
            _allRequests = new List<RequestEntityImp>();
            _allCategories = new List<CategoryEntityImp>();
            _allStandingOrders = new List<StandingOrderEntityImp>();
        }
Пример #2
0
        public RepositoryImp(ApplicationContext context, DataPersistenceHandler persistenceHandler)
        {
            if (context == null)
            {
                throw new ArgumentNullException("context");
            }
            if (persistenceHandler == null)
            {
                throw new ArgumentNullException("persistenceHandler");
            }

            _applicationContext = context;
            _persistenceHandler = persistenceHandler;
            _allRequests        = new List <RequestEntityImp>();
            _allCategories      = new List <CategoryEntityImp>();
            _allStandingOrders  = new List <StandingOrderEntityImp>();
        }