C# 클래스 DomainDrivenDelivery.Domain.Model.Handling.HandlingEventFactory

Creates handling events.
파일 보기 프로젝트 열기: awhatley/dddsample.net 1 사용 예제들

공개 메소드들

메소드 설명
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