public SmartERPImplementation(ISmartERPIntegrationManager smartERPIntegration)
 {
     _smartERPIntegration = smartERPIntegration;
 }
Esempio n. 2
0
 public HomeController(IIsolatedIntegrationManager isolatedIntegration, IOracleERPIntegrationManager oracleERPIntegration, ISmartERPIntegrationManager smartERPIntegration)
 {
     _isolatedIntegration  = isolatedIntegration;
     _oracleERPIntegration = oracleERPIntegration;
     _smartERPIntegration  = smartERPIntegration;
 }
        public static IntegrationMode GetIntegrationMode(IIsolatedIntegrationManager isolatedIntegration, IOracleERPIntegrationManager oracleERPIntegration, ISmartERPIntegrationManager smartERPIntegration, GeneralConfig generalConfig)
        {
            IntegrationMode integrationMode = null;

            if (generalConfig.OrgName == IntegrationModeName.Isolated.ToString())
            {
                integrationMode = new IsolatedImplementation(isolatedIntegration);
            }

            else if (generalConfig.OrgName == IntegrationModeName.SmartERP.ToString())
            {
                integrationMode = new SmartERPImplementation(smartERPIntegration);
            }

            else if (generalConfig.OrgName == IntegrationModeName.OracleERP.ToString())
            {
                integrationMode = new OracleERPImplementaion(oracleERPIntegration);
            }

            return(integrationMode);
        }