Beispiel #1
0
        public async Task Remove_Format()
        {
            var format = await FormatHelpers.CreateValidFormat();

            var repository = new FormatRepository(_fixture.Context);

            (await repository.ExistsAsync(format.Id)).Should().BeTrue();

            await FormatHelpers.RemoveFormat(format.Id);

            var sut = await repository.GetAsync(format.Id);

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

            (await repository.ExistsAsync(format.Id)).Should().BeFalse();
        }