public User(string username, ILoginPasswordHasher hasher, IBusinessDataMediator businessEvents) : base(businessEvents) { _username = username; _active = true; this.hasher = hasher; _isIdSetted = false; }
public User(int id, string username, string hash, bool active, IBusinessDataMediator businessEvents) : base(businessEvents) { _id = id; _username = username; _hash = hash; _active = active; hasher = new LoginPasswordHasher(); _isIdSetted = true; }
public AbstractComandHandler(IMediatorsFactory businessEventsFactory, IInfrastructureOperationsFactory infrastructureOperationsFactory) { businessDataMediator = businessEventsFactory.CreateBusinessDataMediator(handleBusinessNeed, handleBusinessNeed); this.infrastructureOperationsFactory = infrastructureOperationsFactory; }
public AbstractComandHandler() { businessDataMediator = (new MediatorsFactory()).CreateBusinessDataMediator(handleBusinessNeed, handleBusinessNeed); infrastructureOperationsFactory = new InfrastructureOperationsFactory(); }
public UserCollection(IBusinessDataMediator businessEvents) : base(businessEvents) { }
protected BusinessBase(IBusinessDataMediator handlers) : base(handlers) { }
public BusinessObject(IBusinessDataMediator mediator) { this._mediator = mediator; }