Beispiel #1
0
        public SingleObjectModel GetStep([FromUri] string stepUID)
        {
            using (var usecases = StepsDesignUseCases.UseCaseInteractor()) {
                StepDto stepDto = usecases.GetStep(stepUID);

                return(new SingleObjectModel(this.Request, stepDto));
            }
        }
Beispiel #2
0
        public CollectionModel SearchSteps([FromBody] SearchStepsCommand searchCommand)
        {
            base.RequireBody(searchCommand);

            using (var usecases = StepsDesignUseCases.UseCaseInteractor()) {
                FixedList <StepDescriptorDto> list = usecases.SearchSteps(searchCommand);

                return(new CollectionModel(this.Request, list));
            }
        }
        public StepsDesignUseCasesTests()
        {
            TestsCommonMethods.Authenticate();

            _usecases = StepsDesignUseCases.UseCaseInteractor();
        }