public void When()
        {
            bool isActive = true;

            _eventProcessor = new EventProcessor(isActive);
            _shipKingRoy    = new Ship("King Roy");
            _customsApi     = A.Fake <ICustomsApi> ();

            _customsEventGateway = new CustomsEventGateway(true, _customsApi);
            _portOfSanFrancisco  = new Port("San Francisco", Country.US, _customsEventGateway);
            ArrivalEvent ev = new ArrivalEvent(new DateTime(2005, 11, 1), _portOfSanFrancisco, _shipKingRoy);

            _eventProcessor.Process(ev);
        }
 public CustomsEventGateway(bool isActive, ICustomsApi api)
 {
     _customsApi      = api;
     _gatewayIsActive = isActive;
 }