public void GivenManifestWithoutBlobs()
        {
            Manifest manifestWithoutBlobs = SharedMethods.GetCopyOfManifest(baseManifest);

            manifestWithoutBlobs.Packages = new List <Package> {
                package1
            };

            var expectedPackages = new List <PackageArtifactModel>()
            {
                packageArtifactModel1
            };

            var(actualPackages, actualBlobs) = pushMetadata.GetPackagesAndBlobsInfo(manifestWithoutBlobs);
            actualPackages.Should().BeEquivalentTo(expectedPackages);
            actualBlobs.Should().BeEmpty();
        }
        public void GivenUnversionedBlob()
        {
            Manifest manifestWithUnversionedBlob = SharedMethods.GetCopyOfManifest(baseManifest);

            manifestWithUnversionedBlob.Blobs = new List <Blob> {
                unversionedBlob
            };

            var expectedBlobs = new List <BlobArtifactModel>()
            {
                unversionedBlobArtifactModel
            };

            var(actualPackages, actualBlobs) = pushMetadata.GetPackagesAndBlobsInfo(manifestWithUnversionedBlob);
            actualBlobs.Should().BeEquivalentTo(expectedBlobs);
            actualPackages.Should().BeEmpty();
        }
        public void GivenManifestWithoutPackages()
        {
            Manifest manifestWithoutPackages = SharedMethods.GetCopyOfManifest(baseManifest);

            manifestWithoutPackages.Blobs = new List <Blob> {
                manifestAsBlob
            };

            var expectedBlobs = new List <BlobArtifactModel>()
            {
                manifestAsBlobArtifactModel
            };

            var(packages, blobs) = pushMetadata.GetPackagesAndBlobsInfo(manifestWithoutPackages);
            packages.Should().BeEmpty();
            blobs.Should().BeEquivalentTo(expectedBlobs);
        }