public void SetUp() { base.SetUp(); movementApplicationService = ApplicationContext.Current["movementApplicationService"] as IMovementApplicationService; movementConfirmationApplicationService = ApplicationContext.Current["movementConfirmationApplicationService"] as IMovementConfirmationApplicationService; }
public static IEnumerable <IMovementState> GetByProperty <TPropertyType>(this IMovementApplicationService applicationService, System.Linq.Expressions.Expression <Func <IMovementState, TPropertyType> > propertySelector, TPropertyType propertyValue, IList <string> orders = null, int firstResult = 0, int maxResults = int.MaxValue) { return(applicationService.GetByProperty(ReflectUtils.GetPropertyName <IMovementState, TPropertyType>(propertySelector), propertyValue, orders, firstResult, maxResults)); }
/// <summary> /// Method responsible for initialize controller. /// </summary> /// <param name="applicationService"></param> public MovementController(IMovementApplicationService applicationService) => _applicationService = applicationService;