17 using System.Collections.Generic;
19 using System.Runtime.CompilerServices;
28 public static partial class Messages
39 [MethodImpl(MethodImplOptions.AggressiveInlining)]
40 public static string InvalidQuantity(decimal quantity, IEnumerable<IPosition> positions)
42 return Invariant($
@"The given quantity {quantity
43 } must be equal to the ratio between the quantity and unit quantity for each position. Quantities were {
44 string.Join(",
", positions.Select(position => position.Quantity))}. Unit quantities were {
45 string.Join(",
", positions.Select(position => position.UnitQuantity))}.");