Ejemplo n.º 1
0
 public User(string username, ILoginPasswordHasher hasher, IBusinessDataMediator businessEvents) : base(businessEvents)
 {
     _username   = username;
     _active     = true;
     this.hasher = hasher;
     _isIdSetted = false;
 }
Ejemplo n.º 2
0
 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)
 {
 }
Ejemplo n.º 7
0
 public BusinessObject(IBusinessDataMediator mediator)
 {
     this._mediator = mediator;
 }