public NegativeRevenue(
     NegativeAmount netValue,
     NonPositiveAmount vatValue,
     TaxType taxType,
     RevenueType revenueType,
     VatExemptionType?vatExemption = null)
     : base(netValue, vatValue, taxType, revenueType, vatExemption)
 {
 }
示例#2
0
 private NegativeRevenue(NegativeAmount netValue, NonPositiveAmount vatValue, RevenueInfo info)
 {
     NetValue = netValue;
     VatValue = vatValue;
     Info     = info;
 }
示例#3
0
 public static ITry <NegativeRevenue, IEnumerable <Error> > Create(NegativeAmount netValue, NonPositiveAmount vatValue, RevenueInfo info)
 {
     return(Try.Aggregate(
                ObjectValidations.NotNull(netValue),
                ObjectValidations.NotNull(vatValue),
                ObjectValidations.NotNull(info),
                (n, v, i) => new NegativeRevenue(n, v, i)
                ));
 }