artiso-solutions / adsd-hotel

MIT License
3 stars 0 forks source link

Define OrderRateSelected #69

Open antonio8101 opened 3 years ago

antonio8101 commented 3 years ago

The event OrderRateSelected must be defined for both red service and yellow service that is coupled to it.

The OrderRateSelected must contain at least a Rate and a OrderId.

A Rate should contain:

My proposal is:


class Price 
{
    public decimal CancellationFee { get; set; }
    public decimal Amount { get; set; }
}

class Rate
{
    public Price Price{ get; set; }
    // other properties
}
exbachi commented 3 years ago

looks good. I will implement it this way for the red service