Exemplo n.º 1
0
        public void CreateApplication(IntuneService service)
        {
            var app = new IntuneApplication
            {
                //DataContext = "https://graph.microsoft.com/beta/$metadata#deviceAppManagement/mobileApps/$entity",
                //Id = "05adbse9-04c7-44b9-9e4e-4d8f4939aea6",
                Categories  = new string[0],
                Datatype    = "#microsoft.graph.windowsMobileMSI",
                DisplayName = "Test 3434",
                CommandLine = "install cmd",
                Description = "descripti dfdfsdfon 33434",
                Publisher   = "publisher test test",
                IsFeatured  = false,
                FileName    = "orca.msi",
                ProductCode = "{566AD852-AD56-42AF-8854-12C11AC85586}",
                //CreatedDateTime = DateTime.UtcNow,
                //UploadState = 11,
                PrivacyInformationUrl = "",
                InformationUrl        = "",
                Owner           = "",
                Notes           = "",
                Developer       = "",
                IdentityVersion = "asdfasdf"
                                  //Size = 3
            };

            var resultApp = service.CreateApplication(app).Result;

            resultApp.Should().NotBeNull();
            resultApp.Id.Should().NotBeEmpty();

            Console.WriteLine(resultApp.Id);
        }
Exemplo n.º 2
0
        public void GetApplications(IntuneService service)
        {
            var apps = service.GetApplications();
            var intuneApplications = apps.Result.List as IEnumerable <IntuneApplication>;

            intuneApplications.Should().NotBeNull();
            intuneApplications.Should().NotBeEmpty();

            if (intuneApplications == null)
            {
                return;
            }

            foreach (var intuneApplication in intuneApplications)
            {
                Console.WriteLine(intuneApplication.DisplayName);
            }
        }
Exemplo n.º 3
0
 public DevicesController(PortalContext context, IntuneService intuneService)
 {
     _context       = context;
     _intuneService = intuneService;
 }