private static Package CreateTestPackage()
        {
            var packageRegistration = new PackageRegistration();

            packageRegistration.Id = "test";

            var framework = new PackageFramework();
            var author    = new PackageAuthor {
                Name = "maarten"
            };
            var dependency = new PackageDependency {
                Id = "other"
            };

            var package = new Package
            {
                Key = 123,
                PackageRegistration = packageRegistration,
                Version             = "1.0.0",
                Hash = _packageHashForTests,
                SupportedFrameworks = new List <PackageFramework>
                {
                    framework
                },
                FlattenedAuthors = "maarten",
                Authors          = new List <PackageAuthor>
                {
                    author
                },
                Dependencies = new List <PackageDependency>
                {
                    dependency
                },
                User = new User("test")
            };

            packageRegistration.Packages.Add(package);

            return(package);
        }
        private static Package CreateTestPackage()
        {
            var packageRegistration = new PackageRegistration();
            packageRegistration.Id = "test";

            var framework = new PackageFramework();
            var author = new PackageAuthor { Name = "maarten" };
            var dependency = new PackageDependency { Id = "other" };

            var package = new Package
            {
                Key = 123,
                PackageRegistration = packageRegistration,
                Version = "1.0.0",
                Hash = _packageHashForTests,
                SupportedFrameworks = new List<PackageFramework>
                {
                    framework
                },
                FlattenedAuthors = "maarten",
                Authors = new List<PackageAuthor>
                {
                    author
                },
                Dependencies = new List<PackageDependency>
                {
                    dependency
                },
                User = new User("test")
            };

            packageRegistration.Packages.Add(package);

            return package;
        }