Esempio n. 1
0
        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;
        }
Esempio n. 2
0
 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));
 }