Example #1
0
        protected AbstractEntityService(IUnitOfWork unitOfWork, IEventAggregator ea)
        {
            unitOfWork.Guard("UnitOfWork must not be null.");
            ea.Guard("EventAggregator mus not be null.");

            UnitOfWork       = unitOfWork;
            EntityRepository = unitOfWork.Repository <T>();
            EventAggregator  = ea;
        }