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>(); }
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>(); }