Exemplo n.º 1
0
        public void RemovePass()
        {
            PassDto solution = SampleEntityDto.CreatePassDto();

            OnTestOfRemove <PassDto, Pass>(
                ref solution,
                service => service.RemovePass(solution));
        }
Exemplo n.º 2
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);
        }
Exemplo n.º 3
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);
            });
        }
Exemplo n.º 4
0
 public void InsertPass()
 {
     OnTestOfCreate(service =>
                    service.InsertPass(SampleEntityDto.CreatePassDto()));
 }