Esempio n. 1
0
 private void LoadIpa(string path)
 {
     using (var ipaService = new IpaService(new ZipArchiveFactory())) {
         var ipaFile = ipaService.FromFile(path);
         MainGrid.DataContext = ipaFile;
     }
 }
Esempio n. 2
0
        public void IpaFromFile()
        {
            var ipaService = new IpaService(_zipArchiveFactory);
            var ipaFile = ipaService.FromFile(@"c:\temp\myipa.ipa");

            Assert.AreEqual("software", ipaFile.Kind);
            Assert.AreEqual("1.0", ipaFile.BundleVersion);
            Assert.AreEqual("Application", ipaFile.Genre);
            Assert.AreEqual("SampleBrowser", ipaFile.ItemName);
            Assert.AreEqual("SampleBrowser", ipaFile.PlaylistName);
            Assert.AreEqual(10, ipaFile.ProvisionedDevices.Count);
            Assert.AreEqual(true, ipaFile.SoftwareIconNeedsShine);
            Assert.AreEqual("AdventureWork_Common", ipaFile.ProvisioningProfile);
            Assert.AreEqual("com.your-company.SampleBrowser", ipaFile.SoftwareVersionBundleId);
        }
Esempio n. 3
0
        public void IpaFromEmptyFile()
        {
            var ipaService = new IpaService(_zipArchiveFactoryEmpty);
            var ipaFile = ipaService.FromFile(@"c:\temp\myipa.ipa");

            Assert.IsNull(ipaFile.ItemName);
            Assert.IsNull(ipaFile.BundleVersion);
            Assert.IsNull(ipaFile.Genre);
            Assert.IsNull(ipaFile.Kind);
            Assert.IsNull(ipaFile.PlaylistName);
            Assert.IsNull(ipaFile.ProvisionedDevices);
            Assert.IsNull(ipaFile.ProvisioningProfile);
            Assert.IsNull(ipaFile.SoftwareIconNeedsShine);
            Assert.IsNull(ipaFile.SoftwareVersionBundleId);
        }
Esempio n. 4
0
        public void IpaFromFile()
        {
            var ipaService = new IpaService(_zipArchiveFactory);
            var ipaFile    = ipaService.FromFile(@"c:\temp\myipa.ipa");

            Assert.AreEqual("software", ipaFile.Kind);
            Assert.AreEqual("1.0", ipaFile.BundleVersion);
            Assert.AreEqual("Application", ipaFile.Genre);
            Assert.AreEqual("SampleBrowser", ipaFile.ItemName);
            Assert.AreEqual("SampleBrowser", ipaFile.PlaylistName);
            Assert.AreEqual(10, ipaFile.ProvisionedDevices.Count);
            Assert.AreEqual(true, ipaFile.SoftwareIconNeedsShine);
            Assert.AreEqual("AdventureWork_Common", ipaFile.ProvisioningProfile);
            Assert.AreEqual("com.your-company.SampleBrowser", ipaFile.SoftwareVersionBundleId);
        }
Esempio n. 5
0
        public void IpaFromEmptyFile()
        {
            var ipaService = new IpaService(_zipArchiveFactoryEmpty);
            var ipaFile    = ipaService.FromFile(@"c:\temp\myipa.ipa");

            Assert.IsNull(ipaFile.ItemName);
            Assert.IsNull(ipaFile.BundleVersion);
            Assert.IsNull(ipaFile.Genre);
            Assert.IsNull(ipaFile.Kind);
            Assert.IsNull(ipaFile.PlaylistName);
            Assert.IsNull(ipaFile.ProvisionedDevices);
            Assert.IsNull(ipaFile.ProvisioningProfile);
            Assert.IsNull(ipaFile.SoftwareIconNeedsShine);
            Assert.IsNull(ipaFile.SoftwareVersionBundleId);
        }