Exemplo n.º 1
0
 public static IEnumerable <Money> Allocate(this Money @this, RatioArray ratios, IMoneyAllocator allocator)
 {
     Require.NotNull(allocator, nameof(allocator));
     return(allocator.Allocate(@this, ratios));
 }
Exemplo n.º 2
0
 public static IEnumerable <Money> Allocate(this Money @this, RatioArray ratios, MidpointRounding mode)
 => new MidpointRoundingMoneyAllocator(mode).Allocate(@this, ratios);
Exemplo n.º 3
0
 public static IEnumerable <Money> Allocate(this Money @this, RatioArray ratios, IRoundingAdjuster adjuster)
 => new RoundingMoneyAllocator(adjuster).Allocate(@this, ratios);
Exemplo n.º 4
0
 public static IEnumerable <Money> Allocate(this Money @this, RatioArray ratios)
 => s_DefaultAllocator.Allocate(@this, ratios);