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);
        }
Exemple #2
0
        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)
                   ));
        }