public ActiveCollectionController(IActiveRepository activeRepo, ICollectionRepository colRepo, IActiveCollectionProvider actColProvider)
        {
            if (activeRepo != null)
            {
                this._activeRepo = activeRepo;
            }
            else
            {
                this._activeRepo = new ActiveRepository();
            }

            if (colRepo != null)
            {
                this._colRepo = colRepo;
            }
            else
            {
                this._colRepo = new CollectionRepository();
            }

            if (actColProvider != null)
            {
                this._actColProvider = actColProvider;
            }
            else
            {
                this._actColProvider = new ActiveCollectionProvider(this._activeRepo, this._colRepo);
            }
        }
Example #2
0
        public TrackingController(IActiveRepository activeRepo, ICollectionRepository colRepo, ITrackingProvider trackingProvider)
        {
            if (activeRepo != null)
            {
                this._activeRepo = activeRepo;
            }
            else
            {
                this._activeRepo = new ActiveRepository();
            }

            if (colRepo != null)
            {
                this._colRepo = colRepo;
            }
            else
            {
                this._colRepo = new CollectionRepository();
            }

            if (trackingProvider != null)
            {
                this._trackingProvider = trackingProvider;
            }
            else
            {
                this._trackingProvider = new TrackingProvider(this._activeRepo, this._colRepo);
            }
        }
Example #3
0
 public ActiveProvider(IActiveRepository actRepo)
 {
     if (actRepo != null)
     {
         this._activeRepo = actRepo;
     }
     else
     {
         this._activeRepo = new ActiveRepository();
     }
 }
Example #4
0
        public void Init()
        {
            _catRepo     = new CategoryRepository();
            _catProvider = new CategoryProvider(_catRepo);

            _colRepo     = new CollectionRepository();
            _colProvider = new CollectionProvider(_colRepo);

            _actRepo     = new ActiveRepository();
            _actProvider = new ActiveProvider(_actRepo);
        }
        public ActiveController(IActiveRepository actRepo, IActiveProvider actProvider)
        {
            if (actRepo != null)
            {
                this._activeRepository = actRepo;
            }
            else
            {
                this._activeRepository = new ActiveRepository();
            }

            if (actProvider != null)
            {
                this._activeProvider = actProvider;
            }
            else
            {
                this._activeProvider = new ActiveProvider(this._activeRepository);
            }
        }
Example #6
0
        public TrackingProvider(IActiveRepository actRepo, ICollectionRepository colRepo)
        {
            if (actRepo != null)
            {
                this._activeRepo = actRepo;
            }
            else
            {
                this._activeRepo = new ActiveRepository();
            }

            if (colRepo != null)
            {
                this._collectionRepo = colRepo;
            }
            else
            {
                this._collectionRepo = new CollectionRepository();
            }
        }