コード例 #1
0
        public void SetUp()
        {
            base.SetUp();

            movementApplicationService             = ApplicationContext.Current["movementApplicationService"] as IMovementApplicationService;
            movementConfirmationApplicationService = ApplicationContext.Current["movementConfirmationApplicationService"] as IMovementConfirmationApplicationService;
        }
コード例 #2
0
 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));
 }
コード例 #3
0
 /// <summary>
 /// Method responsible for initialize controller.
 /// </summary>
 /// <param name="applicationService"></param>
 public MovementController(IMovementApplicationService applicationService)
 => _applicationService = applicationService;