Esempio n. 1
0
        public ILogUserService Create(ServicesAvailable operation)
        {
            ILogUserService result;

            if (operation == ServicesAvailable.New)
            {
                result = new NewUserLogging();
            }
            else
            {
                result = new ExistingUserLogging();
            }
            return(result);
        }
Esempio n. 2
0
        public IPaymentService Create(ServicesAvailable operation)
        {
            IPaymentService result;

            if (operation == ServicesAvailable.Italian)
            {
                result = new ItalianPaymentService();
            }
            else
            {
                result = new BrazilianPaymentService();
            }
            return(result);
        }