Ejemplo n.º 1
0
        public void RemoveConclusionEssential()
        {
            ConclusionEssentialDto conclusion = SampleEntityDto.CreateConclusionEssential();

            OnTestOfRemove <ConclusionEssentialDto, ConclusionEssential>(
                ref conclusion,
                service => service.RemoveConclusionEssential(conclusion));
        }
Ejemplo n.º 2
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);
        }
Ejemplo n.º 3
0
 public void InsertAconclusionEssential()
 {
     OnTestOfCreate(service =>
                    service.AddConclusionEssential(SampleEntityDto.CreateConclusionEssential()));
 }
Ejemplo n.º 4
0
        public void GetConclusionEssential()
        {
            var rn = _nhHelper.Create <ConclusionEssential>(Mapper.Map <ConclusionEssential>(SampleEntityDto.CreateConclusionEssential()), true);

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


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

                Assert.That(result, Is.Not.Null);
            });
        }