Beispiel #1
0
        public override void beforeAll()
        {
            base.beforeAll();

            _solutionDto       = new ObjectMother(AdministratorClarifySession).CreateSolution();
            _solutionAssembler = Container.GetInstance <IModelBuilder <Solution> >();
            _solution          = _solutionAssembler.GetOne(_solutionDto.IDNumber);
        }
        public override void beforeAll()
        {
            base.beforeAll();

            _solutionDto = new ObjectMother(AdministratorClarifySession).CreateSolution();

            //put a service into the container to inject the solution's resolution objid
            Container.Inject(new FilterInjectionService {
                FilterObjid = _solutionDto.Resolutions[1]
            });
            _solutionAssembler = Container.GetInstance <IModelBuilder <FilteredSolution> >();
            _solution          = _solutionAssembler.GetOne(_solutionDto.IDNumber);
        }
 public Attachment Execute(AttachmentRequest request)
 {
     return(_builder.GetOne(request.Id));
 }