Пример #1
0
        public void AddNewBookShouldBeTrue()
        {
            var media = FakeMediaFactory.GetTotoBook();

            var(result, errorOption) =
                _mediaService
                .AddMedia(
                    media.name,
                    media.category
                    );

            result
            .Should()
            .BeTrue();

            errorOption
            .HasValue
            .Should()
            .BeFalse();
        }