} // Derived? public ServiceEntity(int tenantId, int branchId, ServiceCategory serviceCategory, ResourceCategory resourceCategory) : base() { TenantId = tenantId; BranchId = branchId; ServiceCategory = serviceCategory; ResourceCategory = resourceCategory; }
public Boarding(int TenantId, int BranchId, ServiceCategory ServiceCategory, ResourceCategory ResourceCategory, StayDurationType stayDurationType) : base(TenantId, BranchId, ServiceCategory, ResourceCategory) { if (ServiceCategory != ServiceCategory.Boarding) { throw new InvalidEnumArgumentException("Cannot create non boarding service"); } this.StayDurationType = stayDurationType; }
public Grooming(int TenantId, int BranchId, ServiceCategory ServiceCategory, ResourceCategory ResourceCategory, TimeSpan duration) : base(TenantId, BranchId, ServiceCategory, ResourceCategory) { if (ServiceCategory != ServiceCategory.Grooming) { throw new InvalidEnumArgumentException("Cannot create non Grooming service"); } Duration = duration; }