示例#1
0
        public ItemsControllerFixture()
        {
            Client = new InventoryClient();

            var result = Client.Post(Endpoint, new ItemCreateModel
            {
                Name     = $"{TestKey}_FIXTURE_Name",
                Model    = $"{TestKey}_FIXTURE_Model",
                Category = $"{TestKey}_FIXTURE_Category"
            }).GetAwaiter().GetResult();

            result.Response.IsSuccessStatusCode.Should().BeTrue();
            result.Response.StatusCode.Should().Be(HttpStatusCode.Created);

            FixtureItemId = result.ResourceId;
        }