public static Currency CartCurrency(this IResolveFieldContext userContext)
 {
     return(userContext.GetValueForSource <CartAggregate>().Currency);
 }
 public static Currency GetOrderCurrency <T>(this IResolveFieldContext <T> userContext)
 {
     return(userContext.GetValueForSource <CustomerOrderAggregate>()?.Currency);
 }
 public static CartAggregate GetCart(this IResolveFieldContext userContext)
 {
     return(userContext.GetValueForSource <CartAggregate>());
 }