Example #1
0
        public GalleryImageService(ITravelGuideContext context, IGalleryImageFactory imageFactory,
                                   IGalleryLikeFactory likeFactory, IGalleryCommentFactory commentFactory)
        {
            if (context == null)
            {
                throw new ArgumentNullException("Context cannot be null!");
            }

            if (imageFactory == null)
            {
                throw new ArgumentNullException("Image factory cannot be null!");
            }

            if (likeFactory == null)
            {
                throw new ArgumentNullException("Like factory cannot be null!");
            }

            if (commentFactory == null)
            {
                throw new ArgumentNullException("Comment factory cannot be null!");
            }

            this.context        = context;
            this.imageFactory   = imageFactory;
            this.likeFactory    = likeFactory;
            this.commentFactory = commentFactory;
        }
        public StoryService(ITravelGuideContext context, IStoryFactory storyFactory, IStoryLikeFactory likesFactory, IStoryCommentFactory commentsFactory)
        {
            if (context == null)
            {
                throw new ArgumentNullException();
            }

            if (storyFactory == null)
            {
                throw new ArgumentNullException();
            }

            if (likesFactory == null)
            {
                throw new ArgumentNullException();
            }

            if (commentsFactory == null)
            {
                throw new ArgumentNullException();
            }

            this.context         = context;
            this.storyFactory    = storyFactory;
            this.likesFactory    = likesFactory;
            this.commentsFactory = commentsFactory;
        }
Example #3
0
        public UserService(ITravelGuideContext context)
        {
            if (context == null)
            {
                throw new ArgumentNullException();
            }

            this.context = context;
        }
        public StoreService(ITravelGuideContext context, IStoreItemFactory factory)
        {
            if (context == null)
            {
                throw new ArgumentNullException();
            }

            if (factory == null)
            {
                throw new ArgumentNullException();
            }

            this.context = context;
            this.factory = factory;
        }
        public ArticleService(ITravelGuideContext context, IArticleFactory articleFactory, IArticleCommentFactory commentFactory)
        {
            if (context == null)
            {
                throw new ArgumentNullException("Passed DdContext cannot be null!");
            }

            if (articleFactory == null)
            {
                throw new ArgumentNullException("Passed factory cannot be null!");
            }

            if (commentFactory == null)
            {
                throw new ArgumentNullException("Passed factory cannot be null!");
            }

            this.context        = context;
            this.articleFactory = articleFactory;
            this.commentFactory = commentFactory;
        }
Example #6
0
        public RequestService(ITravelGuideContext context, IUserService userService, IRequestFactory factory)
        {
            if (context == null)
            {
                throw new ArgumentNullException();
            }

            if (userService == null)
            {
                throw new ArgumentNullException();
            }

            if (factory == null)
            {
                throw new ArgumentNullException();
            }

            this.context     = context;
            this.userService = userService;
            this.factory     = factory;
        }
 public ExtendedArticleService(ITravelGuideContext context, IArticleFactory articleFactory, IArticleCommentFactory commentFactory)
     : base(context, articleFactory, commentFactory)
 {
 }
Example #8
0
 public RequestServiceMock(ITravelGuideContext context, IUserService userService, IRequestFactory factory)
     : base(context, userService, factory)
 {
 }
 public StoreServiceMock(ITravelGuideContext context, IStoreItemFactory factory)
     : base(context, factory)
 {
 }
Example #10
0
 public UserServiceMock(ITravelGuideContext context) : base(context)
 {
 }
Example #11
0
 public ExtendedGalleryImageService(ITravelGuideContext context, IGalleryImageFactory imageFactory,
                                    IGalleryLikeFactory likeFactory, IGalleryCommentFactory commentFactory)
     : base(context, imageFactory, likeFactory, commentFactory)
 {
 }
Example #12
0
 public ArticleServiceMock(ITravelGuideContext context, IArticleFactory articleFactory, IArticleCommentFactory commentFactory)
     : base(context, articleFactory, commentFactory)
 {
 }