Пример #1
0
        public void RemoveActInputControl()
        {
            ActInputControlDto act = SampleEntityDto.CreateActInputControl();

            OnTestOfRemove <ActInputControlDto, ActInputControl>(
                ref act,
                service => service.RemoveActInputControl(act));
        }
Пример #2
0
        public void UpdateActInputControl()
        {
            ActInputControlDto act = SampleEntityDto.CreateActInputControl();

            OnTestOfUpdate <ActInputControlDto, ActInputControl>(
                ref act,
                service => { service.UpdateActInputControl(act); },
                (dto, entity) => dto.Note == entity.Note);
        }
Пример #3
0
        public void GetActsInputControl()
        {
            var rn = _nhHelper.Create <ActInputControl>(Mapper.Map <ActInputControl>(SampleEntityDto.CreateActInputControl()), true);

            _helper.CreateCoordinatorOfServices(serviceScope =>
            {
                IPlanReceiptOrderService service = serviceScope.CreatePlanService();
                var filterDto  = new ActInputControlDto();
                filterDto.RN   = rn;
                const int skip = 0;
                const int take = 0;
                int total;


                IEnumerable <ActInputControlDto> result =
                    service.GetActsInputControlFilter(filterDto, skip, take, out total);

                Assert.That(result, Is.Not.Null);
            });
        }
Пример #4
0
 public void InsertActInputControl()
 {
     OnTestOfCreate(service =>
                    service.AddActInputControl(SampleEntityDto.CreateActInputControl()));
 }