コード例 #1
0
        public async Task ShouldUpdateAsync()
        {
            string newValue  = "Newly created fresh value";
            var    updateDto = new ContentUpdateDto
            {
                Value = newValue
            };

            await _service.UpdateAsync(_data.Content_1_Id, updateDto);

            var content = await _service.GetAsync(_data.Content_1_Id);

            content.ShouldNotBeNull();
            content.Value.ShouldBe(newValue);
        }