예제 #1
0
 public void Remove()
 {
     ActInputControlTechnicalStateDto act = SampleEntityDto.CreateActInputControlTechnicalStateDto();
     OnTestOfRemove<ActInputControlTechnicalStateDto, ActInputControlTechnicalState>(
         ref act,
         service => service.RemoveActInputControlTechnicalState(act));
 }
        public void Remove()
        {
            ApplySolutionByRemarkDto solution = SampleEntityDto.CreateApplySolutionByRemarkDto();

            OnTestOfRemove <ApplySolutionByRemarkDto, ApplySolutionByRemark>(
                ref solution,
                service => service.RemoveApplySolutionByRemark(solution));
        }
예제 #3
0
        public void RemoveActInputControlDestination()
        {
            ActInputControlDestinationDto destination = SampleEntityDto.CreateActInputControlDestinationDto();

            OnTestOfRemove <ActInputControlDestinationDto, Destination>(
                ref destination,
                service => service.RemoveActInputControlDestination(destination));
        }
예제 #4
0
        public void RemoveConclusion()
        {
            ConclusionDto conclusion = SampleEntityDto.CreateConclusion();

            OnTestOfRemove <ConclusionDto, Conclusion>(
                ref conclusion,
                service => service.RemoveConclusion(conclusion));
        }
예제 #5
0
        public void RemoveQualityStateControlOfTheMakeSignature()
        {
            QualityStateControlOfTheMakeSignatureDto destination = SampleEntityDto.CreateQualityStateControlOfTheMakeSignature();

            OnTestOfRemove <QualityStateControlOfTheMakeSignatureDto, QualityStateControlOfTheMakeSignature>(
                ref destination,
                service => service.RemoveQualityStateControlOfTheMakeSignature(destination));
        }
예제 #6
0
 public void Update()
 {
     ActInputControlTechnicalStateDto act = SampleEntityDto.CreateActInputControlTechnicalStateDto();
     OnTestOfUpdate<ActInputControlTechnicalStateDto, ActInputControlTechnicalState>(
         ref act,
         service => { act.Note = "new note!!!!"; service.UpdateActInputControlTechnicalState(act); },
         (dto, entity) => dto.Note == entity.Note);
 }
예제 #7
0
        public void Remove()
        {
            SolutionByNoteDto solution = SampleEntityDto.CreateSolutionByNote();

            OnTestOfRemove <SolutionByNoteDto, SolutionByNote>(
                ref solution,
                service => service.RemoveSolutionByNote(solution));
        }
예제 #8
0
        public void RemovePass()
        {
            PassDto solution = SampleEntityDto.CreatePassDto();

            OnTestOfRemove <PassDto, Pass>(
                ref solution,
                service => service.RemovePass(solution));
        }
예제 #9
0
        public void RemoveTheMoveAct()
        {
            TheMoveActDto theMove = SampleEntityDto.CreateTheMoveAct();

            OnTestOfRemove <TheMoveActDto, TheMoveAct>(
                ref theMove,
                service => service.RemoveTheMoveAct(theMove));
        }
예제 #10
0
        public void RemoveActInputControl()
        {
            ActInputControlDto act = SampleEntityDto.CreateActInputControl();

            OnTestOfRemove <ActInputControlDto, ActInputControl>(
                ref act,
                service => service.RemoveActInputControl(act));
        }
예제 #11
0
        public void RemoveCertificatQuality()
        {
            CertificateQualityDto solution = SampleEntityDto.CreateCertificateQuality();

            OnTestOfRemove <CertificateQualityDto, CertificateQuality>(
                ref solution,
                service => service.RemoveCertificatQuality(solution));
        }
        public void Update()
        {
            ApplySolutionByRemarkDto solution = SampleEntityDto.CreateApplySolutionByRemarkDto();

            OnTestOfUpdate <ApplySolutionByRemarkDto, ApplySolutionByRemark>(
                ref solution,
                service => { solution.CreationDate = new DateTime(2999, 1, 1); service.UpdateApplySolutionByRemark(solution); },
                (dto, entity) => dto.CreationDate == entity.CreationDate);
        }
예제 #13
0
        public void UpdateConclusion()
        {
            ConclusionDto conclusion = SampleEntityDto.CreateConclusion();

            OnTestOfUpdate <ConclusionDto, Conclusion>(
                ref conclusion,
                service => { conclusion.NOTE = "new note!!!!!"; service.UpdateConclusion(conclusion); },
                (dto, entity) => dto.NOTE == entity.Note);
        }
예제 #14
0
        public void Update()
        {
            SolutionByNoteDto solution = SampleEntityDto.CreateSolutionByNote();

            OnTestOfUpdate <SolutionByNoteDto, SolutionByNote>(
                ref solution,
                service => { solution.Note = "new note!!!!"; service.UpdateSolutionByNote(solution); },
                (dto, entity) => dto.Note == entity.Note);
        }
예제 #15
0
        public void UpdateActInputControl()
        {
            ActInputControlDto act = SampleEntityDto.CreateActInputControl();

            OnTestOfUpdate <ActInputControlDto, ActInputControl>(
                ref act,
                service => { service.UpdateActInputControl(act); },
                (dto, entity) => dto.Note == entity.Note);
        }
예제 #16
0
        public void UpdateActInputControlDestination()
        {
            ActInputControlDestinationDto destination = SampleEntityDto.CreateActInputControlDestinationDto();

            OnTestOfUpdate <ActInputControlDestinationDto, Destination>(
                ref destination,
                service => { destination.Note = "new note!!!!!"; service.UpdateActInputControlDestination(destination); },
                (dto, entity) => dto.Note == entity.Note);
        }
예제 #17
0
        public void UpdateQualityStateControlOfTheMake()
        {
            QualityStateControlOfTheMakeDto quality = SampleEntityDto.CreateQualityStateControlOfTheMake();

            OnTestOfUpdate <QualityStateControlOfTheMakeDto, QualityStateControlOfTheMake>(
                ref quality,
                service => { quality.Note = "new note!!!!!"; service.UpdateQualityStateControlOfTheMake(quality); },
                (dto, entity) => dto.Note == entity.Note);
        }
예제 #18
0
        public void UpdateConclusionEssential()
        {
            ConclusionEssentialDto conclusion = SampleEntityDto.CreateConclusionEssential();

            OnTestOfUpdate <ConclusionEssentialDto, ConclusionEssential>(
                ref conclusion,
                service => { conclusion.CreationDate = new DateTime(2099, 1, 2); service.UpdateConclusionEssential(conclusion); },
                (dto, entity) => dto.CreationDate == entity.CreationDate);
        }
예제 #19
0
        public void UpdateCertificatQuality()
        {
            CertificateQualityDto solution = SampleEntityDto.CreateCertificateQuality();

            OnTestOfUpdate <CertificateQualityDto, CertificateQuality>(
                ref solution,
                service => { solution.GOSTCAST = "new note!!!!"; service.UpdateCertificatQuality(solution); },
                (dto, entity) => dto.GOSTCAST == entity.GOSTCAST);
        }
예제 #20
0
        public void UpdatePass()
        {
            PassDto solution = SampleEntityDto.CreatePassDto();

            OnTestOfUpdate <PassDto, Pass>(
                ref solution,
                service => { solution.Note = "new note!!!!"; service.UpdatePass(solution); },
                (dto, entity) => dto.Note == entity.Note);
        }
예제 #21
0
        public void UpdateQualityStateControlOfTheMakeSignature()
        {
            QualityStateControlOfTheMakeSignatureDto quality = SampleEntityDto.CreateQualityStateControlOfTheMakeSignature();

            OnTestOfUpdate <QualityStateControlOfTheMakeSignatureDto, QualityStateControlOfTheMakeSignature>(
                ref quality,
                service => {
                quality.CreationDate = new DateTime(2013, 1, 1);
                service.UpdateQualityStateControlOfTheMakeSignature(quality);
            },
                (dto, entity) => dto.CreationDate == entity.CreationDate);
        }
예제 #22
0
        public void GetTheMoveAct()
        {
            var rn = _nhHelper.Create <TheMoveAct>(Mapper.Map <TheMoveAct>(SampleEntityDto.CreateTheMoveAct()));

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

                var result = service.GetTheMoveActFilter(actm, skip, take, out total);
                Assert.That(result.Any(), Is.True);
            });
        }
예제 #23
0
        public void GetCertificatesQuality()
        {
            _nhHelper.Create(Mapper.Map <CertificateQuality>(SampleEntityDto.CreateCertificateQuality()));

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

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

                Assert.That(result.Any(), Is.True);
                Assert.That(total, Is.GreaterThanOrEqualTo(1));
            });
        }
예제 #24
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);
            });
        }
예제 #25
0
        public void GetCertificateQualityPass()
        {
            PassDto passDto = SampleEntityDto.CreatePassDto();

            passDto.RN = _nhHelper.Create(Mapper.Map <Pass>(passDto));

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

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

                Assert.That(result.Any(), Is.True);
            });
        }
예제 #26
0
 public void Create()
 {
     OnTestOfCreate(service =>
                    service.InsertSolutionByNote(SampleEntityDto.CreateSolutionByNote()));
 }
 public void Create()
 {
     OnTestOfCreate(service =>
                    service.InsertApplySolutionByRemark(SampleEntityDto.CreateApplySolutionByRemarkDto()));
 }
예제 #28
0
 public void InsertPass()
 {
     OnTestOfCreate(service =>
                    service.InsertPass(SampleEntityDto.CreatePassDto()));
 }
예제 #29
0
 public void InsertCertificatQuality()
 {
     OnTestOfCreate(
         service => service.AddCertificatQuality(SampleEntityDto.CreateCertificateQuality()));
 }
예제 #30
0
 public void Create()
 {
     OnTestOfCreate(service =>
         service.InsertActInputControlTechnicalState(
             SampleEntityDto.CreateActInputControlTechnicalStateDto()));
 }