public void RemoveActInputControl() { ActInputControlDto act = SampleEntityDto.CreateActInputControl(); OnTestOfRemove <ActInputControlDto, ActInputControl>( ref act, service => service.RemoveActInputControl(act)); }
public void UpdateActInputControl() { ActInputControlDto act = SampleEntityDto.CreateActInputControl(); OnTestOfUpdate <ActInputControlDto, ActInputControl>( ref act, service => { service.UpdateActInputControl(act); }, (dto, entity) => dto.Note == entity.Note); }
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); }); }
public void InsertActInputControl() { OnTestOfCreate(service => service.AddActInputControl(SampleEntityDto.CreateActInputControl())); }