示例#1
0
        public void ProcessCallsAddMethodWhenRequestOperationIsAdd()
        {
            // Arrange

            var MockRequest = new Request()
            {
                operation = "add",
                a         = 1,
                b         = 1
            };

            // Act
            var response = service.Process(MockRequest);

            // Assert
            Assert.IsTrue(response.success);
            Assert.AreEqual(response.result, 2);
        }