Пример #1
0
        public static int Operation(int firtsOperand, int secondOperand, EnumTypeOperation operation)
        {
            var operationFactory = new OperationFactory();
            var opera            = operationFactory.Fabricate(operation);

            return(opera != null?opera.Calculate(firtsOperand, secondOperand) : 0);
        }