Exemple #1
0
        public void PostWithReturnType()
        {
            var result = _controller.PostWithReturnType(new Foo {
                Bar = "test"
            });

            Assert.NotNull(result);
            Assert.Equal("test", result.Bar);
        }
Exemple #2
0
        public void PostWithReturnType()
        {
            var foo = new Foo {
                Bar = "bar"
            };
            var result = _controller.PostWithReturnType(foo);

            Assert.AreEqual(foo.Bar, result.Bar);
        }