public void SetUp() { base.SetUp(); organizationTreeRepository = ApplicationContext.Current["organizationTreeRepository"] as IOrganizationTreeRepository; partyApplicationService = ApplicationContext.Current["partyApplicationService"] as IPartyApplicationService; organizationStructureApplicationService = ApplicationContext.Current["organizationStructureApplicationService"] as IOrganizationStructureApplicationService; organizationStructureTypeApplicationService = ApplicationContext.Current["organizationStructureTypeApplicationService"] as IOrganizationStructureTypeApplicationService; }
public static IEnumerable <IPartyState> GetByProperty <TPropertyType>(this IPartyApplicationService applicationService, System.Linq.Expressions.Expression <Func <IPartyState, TPropertyType> > propertySelector, TPropertyType propertyValue, IList <string> orders = null, int firstResult = 0, int maxResults = int.MaxValue) { return(applicationService.GetByProperty(ReflectUtils.GetPropertyName <IPartyState, TPropertyType>(propertySelector), propertyValue, orders, firstResult, maxResults)); }