示例#1
0
        public void Floor_Post_Should_Return_Ok_Response()
        {
            var model = new FloorPostViewModel
            {
                Name      = "blablabla",
                PictureId = "1"
            };

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

            var response = _floorController.Post(model);

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