public void DivideByZeroTest()
        {
            var controller = new MathController(new MathDbRepository());
            var id         = controller.Divide(value1, 0);

            Assert.AreEqual(id, null);
        }
        public void DivideTest()
        {
            var controller = new MathController(new MathDbRepository());
            var id         = controller.Divide(value1, value2);
            var result     = controller.GetResultById((int)id);

            Assert.AreEqual(result, 2);
        }
        public void Division_126_14_Returns9()
        {
            // Arrange
            MathController controller = new MathController();
            int            x = 126, y = 14;

            // Act
            int result = controller.Divide(x, y);

            // Assert
            Assert.Equal(9, result);
        }
        public void Division_14_9_Returns1()
        {
            // Arrange
            MathController controller = new MathController();
            int            x = 14, y = 9;

            // Act
            int result = controller.Divide(x, y);

            // Assert
            Assert.Equal(1, result);
        }