public void TransformToChangeOrderTest() { ConstructionChangeDirective ccd = ConstructionChangeDirectiveService.GetConstructionChangeDirective(new Guid("1a2bfe3b-7577-456d-8484-4f34f67ce42c")); ChangeOrder co = ccd.TransformToChangeOrder(); Assert.AreEqual(6, co.Number); }
protected override List <ConstructionChangeDirective> GetEntitiesList() { return(new List <ConstructionChangeDirective>( ConstructionChangeDirectiveService.GetConstructionChangeDirectives( UserSession.CurrentProject))); }
protected override void SaveCurrentEntity(object sender, EventArgs e) { base.SaveCurrentEntity(sender, e); ConstructionChangeDirectiveService.SaveConstructionChangeDirective( this.CurrentEntity); }