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

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

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