示例#1
0
        public void Floor_Post_Should_Return_Not_Found_Response()
        {
            var model = new FloorPostViewModel();

            _floorController.Request = new HttpRequestMessage();
            _floorController.Request.SetConfiguration(new HttpConfiguration());
            _floorController.Validate(model);

            var response = _floorController.Put(model);

            Assert.AreEqual(HttpStatusCode.NotFound, response.StatusCode);
        }