public HouseholdsController(IHouseholdService householdService, IMapingService mappingService, IWebHelper webHelper)
            : base(mappingService, webHelper)
        {
            if (householdService == null)
            {
                throw new ArgumentNullException(String.Format(ExceptionConstants.ArgumentCannotBeNull, "householdService"));
            }

            this.householdService = householdService;
        }
Esempio n. 2
0
        public ExpensesController(IExpenseService expenseService, IMapingService mappingService, IWebHelper webHelper)
            : base(mappingService, webHelper)
        {
            if (expenseService == null)
            {
                throw new ArgumentNullException(string.Format(ExceptionConstants.ArgumentCannotBeNull, "expenseService"));
            }

            this.expenseService = expenseService;
        }
Esempio n. 3
0
        public UsersController(IUserService userService, IMapingService mappingService, IWebHelper webHelper)
            : base(mappingService, webHelper)
        {
            if (userService == null)
            {
                throw new ArgumentNullException(String.Format(ExceptionConstants.ArgumentCannotBeNull, "userService"));
            }

            this.userService = userService;
        }
Esempio n. 4
0
        public CommentsController(IMapingService mappingService, IWebHelper webHelper, ICommentService commentService)
            : base(mappingService, webHelper)
        {
            if (commentService == null)
            {
                throw new ArgumentNullException(string.Format(ExceptionConstants.ArgumentCannotBeNull, "commentService"));
            }

            this.commentService = commentService;
        }
Esempio n. 5
0
        public BaseController(IMapingService mappingService, IWebHelper webHelper)
        {
            if (mappingService == null)
            {
                throw new ArgumentNullException(string.Format(ExceptionConstants.ArgumentCannotBeNull, "mappingService"));
            }

            if (webHelper == null)
            {
                throw new ArgumentNullException(string.Format(ExceptionConstants.ArgumentCannotBeNull, "webHelper"));
            }

            this.mappingService = mappingService;
            this.webHelper      = webHelper;
        }
Esempio n. 6
0
 public UserService(IGenericEfRepository <User> repository, IUnitOfWork unitOfWork, IMapingService mappingService) : base(repository, unitOfWork)
 {
     Guard.WhenArgument(mappingService, nameof(mappingService)).IsNull().Throw();
     this.mappingService = mappingService;
 }
Esempio n. 7
0
        public ProfileController(IUserService userService, IInvitationService invitationService, IMapingService mappingService, IWebHelper webHelper)
            : base(mappingService, webHelper)
        {
            if (userService == null)
            {
                throw new ArgumentNullException(string.Format(ExceptionConstants.ArgumentCannotBeNull, "userService"));
            }

            if (invitationService == null)
            {
                throw new ArgumentNullException(string.Format(ExceptionConstants.ArgumentCannotBeNull, "invitationService"));
            }

            this.userService       = userService;
            this.invitationService = invitationService;
        }
Esempio n. 8
0
 public CommentService(IGenericEfRepository <Comment> repository, IUnitOfWork unitOfWork, IMapingService mapper) : base(repository, unitOfWork)
 {
     Guard.WhenArgument(mapper, nameof(mapper)).IsNull().Throw();
     this.mapper = mapper;
 }
        public HouseholdController(IUserService userService, IHouseholdService householdService, IImageService imageService, IMapingService mappingService, IWebHelper webHelper)
            : base(mappingService, webHelper)
        {
            if (userService == null)
            {
                throw new ArgumentNullException(string.Format(ExceptionConstants.ArgumentCannotBeNull, "userService"));
            }

            if (householdService == null)
            {
                throw new ArgumentNullException(string.Format(ExceptionConstants.ArgumentCannotBeNull, "householdService"));
            }

            if (imageService == null)
            {
                throw new ArgumentNullException(string.Format(ExceptionConstants.ArgumentCannotBeNull, "imageService"));
            }

            this.userService      = userService;
            this.householdService = householdService;
            this.imageService     = imageService;
        }