Exemple #1
0
 public void ResultIs(int value) => _percentageResult.Should().Be(Percentage.Of(value));
Exemple #2
0
 public static Percentage operator /(Money x, Money y)
 {
     CheckCurrencies(x, y, false);
     return(Percentage.Of((int)Math.Round((x.Value / y.Value) * 100, 0)));
 }
Exemple #3
0
 public void PercentageMultiplierWas(int multiplier) => _percentageMultiplier = Percentage.Of(multiplier);