コード例 #1
0
        public void TestInitialize()
        {
            _controller = new TestApiController
            {
                ActionResponseMessage = new HttpResponseMessage {
                    StatusCode = HttpStatusCode.OK
                }
            };

            _controllerTester = _controller.CreateTester();
        }
 public void TestInitialize()
 {
     _controller       = new TestApiController();
     _controllerTester = _controller.CreateTester();
 }
 public void TestInitialize()
 {
     _controller = new TestApiController();
     _controller.HttpActionResult = _okResult = new OkResult(_controller);
     _controllerTester            = _controller.CreateTester();
 }