コード例 #1
0
        public void TestGetServiceLogic()
        {
            var exampleService = new ExampleService("test message");
            var req            = new RequestJson();

            req.Name    = "sample";
            req.Message = "hello world";

            var res = exampleService.GetServiceLogic(req);

            Assert.Equal("SAMPLE", res.Name);
            Assert.Equal("HELLO WORLD", res.Message);
            Assert.Equal("test message", res.ServiceMessage);
        }