public void VerifyValid() { Fixture.CustomizePoint(); var data = new Messages.AddRoadNode { TemporaryId = Fixture.Create <RoadNodeId>(), Type = Fixture.Create <RoadNodeType>(), Geometry = Fixture.Create <RoadNodeGeometry>() }; Validator.ValidateAndThrow(data); }
private AddRoadNode Translate(Messages.AddRoadNode command) { var permanent = _nextRoadNodeId(); var temporary = new RoadNodeId(command.TemporaryId); return(new AddRoadNode ( permanent, temporary, RoadNodeType.Parse(command.Type), GeometryTranslator.Translate(command.Geometry) )); }