Exemplo n.º 1
0
        private void RouteSourceAdded(RouteDetails routeDetails, RouteSourceAdded @event)
        {
            var stopDetails = new RouteStopDetails
            {
                StopId   = @event.RouteId,
                Name     = @event.Name.Value,
                Position = new Position(@event.Position.Latitude, @event.Position.Longitude)
            };

            routeDetails.From      = stopDetails;
            routeDetails.StopsArea = CalculateArea(routeDetails);
        }
Exemplo n.º 2
0
 public void Apply(RouteSourceAdded @event)
 {
     Source = new Stop(@event.Name, @event.TimeOfDay, @event.Position);
 }