示例#1
0
        public async Task Update_Format()
        {
            var format = await FormatHelpers.CreateValidFormat();

            format.Name.Should().Be("paperback");

            var sut = Format.Create(format.Id, "hardcover");

            await FormatHelpers.UpdateFormat(sut);

            await _fixture.Context.Entry(format).ReloadAsync();

            format.Name.Should().Be("hardcover");
        }