コード例 #1
0
    public async Task PostObjectWithBodyAsync()
    {
        var result = await _controller.PostObjectWithBodyAsync(new Car { Year = 1976, Model = "Ford", FirstReleaseDate = new DateTime(1976, 02, 22, 15, 0, 6, 22) });

        result.Year.ShouldBe(1976);
        result.Model.ShouldBe("Ford");
    }
コード例 #2
0
        public async Task PostObjectWithBodyAsync()
        {
            var result = await _controller.PostObjectWithBodyAsync(new Car { Year = 1976, Model = "Ford" });

            result.Year.ShouldBe(1976);
            result.Model.ShouldBe("Ford");
        }