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; }
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; }
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; }
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; }
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; }
public UserService(IGenericEfRepository <User> repository, IUnitOfWork unitOfWork, IMapingService mappingService) : base(repository, unitOfWork) { Guard.WhenArgument(mappingService, nameof(mappingService)).IsNull().Throw(); this.mappingService = mappingService; }
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; }
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; }