public async Task GetObjectandIdAsync()
    {
        var result = await _controller.GetObjectandIdAsync(42, new Car { Year = 1976, Model = "Ford", FirstReleaseDate = new DateTime(1976, 02, 22, 15, 0, 6, 22) });

        result.Year.ShouldBe(42);
        result.Model.ShouldBe("Ford");
    }
Esempio n. 2
0
        public async Task GetObjectandIdAsync()
        {
            var result = await _controller.GetObjectandIdAsync(42, new Car { Year = 1976, Model = "Ford" });

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