public Consumption(LimitConsumptionContainer consumptionContainer, string caseNumber, Guid serviceId, DateTime consumptionDate, Money consumedAmount, int consumedQuantity) { ConsumptionContainer = consumptionContainer; CaseNumber = caseNumber; ServiceId = serviceId; ConsumptionDate = consumptionDate; ConsumedAmount = consumedAmount; ConsumedQuantity = consumedQuantity; }
public Consumption(LimitConsumptionContainer consumptionContainer, CaseServiceCostSplit caseService) { ConsumptionContainer = consumptionContainer; ServiceId = caseService.CaseServiceId; CaseNumber = caseService.CaseNumber; ConsumptionDate = caseService.Date; ConsumedAmount = caseService.AmountLimitConsumption; ConsumedQuantity = caseService.QtLimitConsumption; }