Exemplo n.º 1
0
        public void SetUp()
        {
            base.SetUp();

            locatorTreeRepository     = ApplicationContext.Current["locatorTreeRepository"] as ILocatorTreeRepository;
            locatorApplicationService = ApplicationContext.Current["locatorApplicationService"] as ILocatorApplicationService;
        }
Exemplo n.º 2
0
 public static IEnumerable <ILocatorState> GetByProperty <TPropertyType>(this ILocatorApplicationService applicationService,
                                                                         System.Linq.Expressions.Expression <Func <ILocatorState, TPropertyType> > propertySelector,
                                                                         TPropertyType propertyValue, IList <string> orders = null, int firstResult = 0, int maxResults = int.MaxValue)
 {
     return(applicationService.GetByProperty(ReflectUtils.GetPropertyName <ILocatorState, TPropertyType>(propertySelector), propertyValue, orders, firstResult, maxResults));
 }