public NegativeRevenue(
     NegativeAmount netValue,
     NonPositiveAmount vatValue,
     TaxType taxType,
     RevenueType revenueType,
     VatExemptionType?vatExemption = null)
     : base(netValue, vatValue, taxType, revenueType, vatExemption)
 {
 }
Exemplo n.º 2
0
 private NegativeRevenue(NegativeAmount netValue, NonPositiveAmount vatValue, RevenueInfo info)
 {
     NetValue = netValue;
     VatValue = vatValue;
     Info     = info;
 }
Exemplo n.º 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)
                ));
 }