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; }
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; }
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) { }
public RequestServiceMock(ITravelGuideContext context, IUserService userService, IRequestFactory factory) : base(context, userService, factory) { }
public StoreServiceMock(ITravelGuideContext context, IStoreItemFactory factory) : base(context, factory) { }
public UserServiceMock(ITravelGuideContext context) : base(context) { }
public ExtendedGalleryImageService(ITravelGuideContext context, IGalleryImageFactory imageFactory, IGalleryLikeFactory likeFactory, IGalleryCommentFactory commentFactory) : base(context, imageFactory, likeFactory, commentFactory) { }
public ArticleServiceMock(ITravelGuideContext context, IArticleFactory articleFactory, IArticleCommentFactory commentFactory) : base(context, articleFactory, commentFactory) { }