Example #1
0
        private void RouteDestinationAdded(RouteDetails routeDetails, RouteDestinationAdded @event)
        {
            var stopDetails = new RouteStopDetails
            {
                StopId   = @event.RouteId,
                Name     = @event.Name.Value,
                Position = new Position(@event.Position.Latitude, @event.Position.Longitude)
            };

            routeDetails.To        = stopDetails;
            routeDetails.StopsArea = CalculateArea(routeDetails);
        }
Example #2
0
 public void Apply(RouteDestinationAdded @event)
 {
     Destination = new Stop(@event.Name, @event.TimeOfDay, @event.Position);
 }