private void GivenMetadata(int seasonRatingKey, ref PlexMediaContainer metadata)
        {
            if (metadata == null)
            {
                metadata = new PlexMediaContainerBuilder().Build();
            }

            _plexApi.GetMetadata(Arg.Any <string>(), Arg.Any <string>(), Arg.Is(seasonRatingKey)).Returns(metadata);
        }
        private void GivenAContainer(int seasonRatingKey, ref PlexMediaContainer container)
        {
            if (container == null)
            {
                container = new PlexMediaContainerBuilder().Build();
            }

            container.MediaContainer.Metadata = new MetadataBuilder().WithRatingKey(seasonRatingKey.ToString()).CreateMany(1);

            _plexApi.GetChildrenMetadata(Arg.Any <string>(), Arg.Any <string>(), Arg.Any <int>()).Returns(container);
        }