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