public ILogUserService Create(ServicesAvailable operation) { ILogUserService result; if (operation == ServicesAvailable.New) { result = new NewUserLogging(); } else { result = new ExistingUserLogging(); } return(result); }
public IPaymentService Create(ServicesAvailable operation) { IPaymentService result; if (operation == ServicesAvailable.Italian) { result = new ItalianPaymentService(); } else { result = new BrazilianPaymentService(); } return(result); }