public void SetUp() { base.SetUp(); shipmentApplicationService = ApplicationContext.Current["shipmentApplicationService"] as IShipmentApplicationService; productApplicationService = ApplicationContext.Current["productApplicationService"] as IProductApplicationService; attributeSetInstanceApplicationService = ApplicationContext.Current["attributeSetInstanceApplicationService"] as IAttributeSetInstanceApplicationService; }
public static IEnumerable <IShipmentState> GetByProperty <TPropertyType>(this IShipmentApplicationService applicationService, System.Linq.Expressions.Expression <Func <IShipmentState, TPropertyType> > propertySelector, TPropertyType propertyValue, IList <string> orders = null, int firstResult = 0, int maxResults = int.MaxValue) { return(applicationService.GetByProperty(ReflectUtils.GetPropertyName <IShipmentState, TPropertyType>(propertySelector), propertyValue, orders, firstResult, maxResults)); }