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