public void SetUp() { base.SetUp(); locatorTreeRepository = ApplicationContext.Current["locatorTreeRepository"] as ILocatorTreeRepository; locatorApplicationService = ApplicationContext.Current["locatorApplicationService"] as ILocatorApplicationService; }
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)); }