public UserService(IMappingProvider mapper, IHashingPassword hashing, IEfUnitOfWork unitOfWork, IEfGenericRepository <User> users) { Guard.WhenArgument(mapper, "mapper").IsNull().Throw(); Guard.WhenArgument(hashing, "hashing").IsNull().Throw(); Guard.WhenArgument(unitOfWork, "unitOfWork").IsNull().Throw(); Guard.WhenArgument(users, "userRepo").IsNull().Throw(); this.hashing = hashing; this.unitOfWork = unitOfWork; this.mapper = mapper; this.users = users; }
public MyProfile(IUserContext userContext, IUserService userservice, IAddressService addressService, IOrderService orderServise, IBankCardService bankCardService, IHashingPassword hashing) { InitializeComponent(); this.userContext = userContext; this.userservice = userservice; this.addressService = addressService; this.orderServise = orderServise; this.bankCardService = bankCardService; this.hashing = hashing; FillUserInfo(); }
public ChangePasswordWindow(IUserService userservice, IHashingPassword hashing) { InitializeComponent(); this.userservice = userservice; this.hashing = hashing; }