public IActionResult Calculate(CalculatorViewModel model)
        {
            if (!(string.IsNullOrWhiteSpace(model?.Operand) && model?.X == 0 && model?.Y == 0))
            {
                model = _calculatorFacade.GetCalculation(model);
            }

            return(View(model));
        }
        public void FacadeReturnsCorrectResultWithOnePlusTwo()
        {
            // Arrange
            var model = new CalculatorViewModel()
            {
                Operand = "+",
                X       = 1,
                Y       = 2
            };

            var expectedResult = 3;

            _calculatorService.Setup(service => service.Calculate("+", 1, 2)).Returns(3);

            // Act
            var actualResult = _calcalatorFacade.GetCalculation(model);

            // Assert
            Assert.Equal(expectedResult, actualResult.Result);
            _calculatorService.Verify(service => service.Calculate("+", 1, 2), Times.Once);
        }