Beispiel #1
0
        public IEnumerable <Forbindelse> GetCombinedForbindelser(Forsendelse forsendelse)
        {
            var oceanicForbindelser   = ConvertToForbindelser(connectionsIntegration.GetOceanicRoutes(forsendelse), Enums.Forbindelsestype.Oceanic);
            var eastIndiaForbindelser = ConvertToForbindelser(connectionsIntegration.GetEastIndiaTradingRoutes(forsendelse), Enums.Forbindelsestype.EastIndia);

            var possibleForbindelser = GetPossibleTelstarForbindelser(forsendelse).Select(f => f as Forbindelse);

            possibleForbindelser = possibleForbindelser.Concat(oceanicForbindelser);
            possibleForbindelser = possibleForbindelser.Concat(eastIndiaForbindelser);

            return(possibleForbindelser);
        }
Beispiel #2
0
        public void ExternalIntegrationsEAShouldDeliverAnyData()
        {
            ConnectionsIntegration ci          = new ConnectionsIntegration();
            Forsendelse            forsendelse = new Forsendelse();

            forsendelse.Godstype         = Enums.GodsType.EXP;
            forsendelse.Vaegt            = 12;
            forsendelse.Fra              = new By();
            forsendelse.Til              = new By();
            forsendelse.PakkeDimensioner = new PakkeDimensioner();
            forsendelse.Rekommanderet    = false;

            var ea = ci.GetEastIndiaTradingRoutes(forsendelse);

            Assert.IsNotEmpty(ea);
        }