public void RemoveQualityStateControlOfTheMakeSignature()
        {
            QualityStateControlOfTheMakeSignatureDto destination = SampleEntityDto.CreateQualityStateControlOfTheMakeSignature();

            OnTestOfRemove <QualityStateControlOfTheMakeSignatureDto, QualityStateControlOfTheMakeSignature>(
                ref destination,
                service => service.RemoveQualityStateControlOfTheMakeSignature(destination));
        }
        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);
        }
 public void InsertQualityStateControlOfTheMakeSignature()
 {
     OnTestOfCreate(service =>
                    service.InsertQualityStateControlOfTheMakeSignature(
                        SampleEntityDto.CreateQualityStateControlOfTheMakeSignature()));
 }
        public void GetQualityStateControlOfTheMakeSignature()
        {
            var rn = _nhHelper.Create <QualityStateControlOfTheMakeSignature>(Mapper.Map <QualityStateControlOfTheMakeSignature>(SampleEntityDto.CreateQualityStateControlOfTheMakeSignature()), true);

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


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

                Assert.That(result.Any(), Is.True);
            });
        }