Exemple #1
0
 public Tenant(TenantId tenantId, string name, bool active)
 {
     this.Id = tenantId.Id;
     this.Name = name;
     this.Active = active;
     this.Start = DateTime.Now;
 }
Exemple #2
0
 public User(TenantId tenantId, string userName, string password, string email)
 {
     this.Id = new UserId().Id;
     this.TenantId = tenantId.Id;
     this.Username = userName;
     this.Password = password;
     this.EmailAddress = new EmailAddress(email);
 }
 public Tenant FindById(TenantId tenantId)
 {
     return this._dataContext.Tenants.Find(tenantId.Id);
 }