public void RegisterHandlingEvent(DateTime completionTime, string trackingId, string location, HandlingEventType type) { var command = new RegisterHandlingEventCommand { CompletionTime = completionTime, TrackingId = trackingId, OccuranceLocation = location, Type = type }; _pipelineFactory.Process(command); }
private static void RegisterHandlingEvent(DateTime completionTime, TrackingId trackingId, UnLocode occuranceLocation, HandlingEventType handlingEventType) { var registerHandlingEventCommand = new RegisterHandlingEventCommand() { CompletionTime = completionTime, OccuranceLocation = occuranceLocation.CodeString, TrackingId = trackingId.IdString, Type = handlingEventType }; CommandPipeline.Process(registerHandlingEventCommand); }