C# Класс DomainDrivenDelivery.Domain.Model.Handling.HandlingEventFactory

Creates handling events.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
HandlingEventFactory ( CargoRepository cargoRepository, VoyageRepository voyageRepository, LocationRepository locationRepository ) : System
createHandlingEvent ( System.DateTime completionTime, TrackingId trackingId, VoyageNumber voyageNumber, UnLocode unlocode, HandlingActivityType type, OperatorCode operatorCode ) : HandlingEvent

Creates a handling event.

Приватные методы

Метод Описание
findCargo ( TrackingId trackingId ) : Cargo
findLocation ( UnLocode unlocode ) : Location
findVoyage ( VoyageNumber voyageNumber ) : Voyage

Описание методов

HandlingEventFactory() публичный Метод

public HandlingEventFactory ( CargoRepository cargoRepository, VoyageRepository voyageRepository, LocationRepository locationRepository ) : System
cargoRepository CargoRepository
voyageRepository VoyageRepository
locationRepository LocationRepository
Результат System

createHandlingEvent() публичный Метод

Creates a handling event.
if there's no voyage with this number if there's no cargo with this tracking id if there's no location with this UN Locode
public createHandlingEvent ( System.DateTime completionTime, TrackingId trackingId, VoyageNumber voyageNumber, UnLocode unlocode, HandlingActivityType type, OperatorCode operatorCode ) : HandlingEvent
completionTime System.DateTime when the event was completed, for example finished loading
trackingId TrackingId cargo tracking id
voyageNumber VoyageNumber voyage number
unlocode UnLocode United Nations Location Code for the location of the event
type HandlingActivityType type of event
operatorCode OperatorCode operator code
Результат HandlingEvent