Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PowerShell store apps #59

Merged
merged 14 commits into from
May 3, 2024
Merged

PowerShell store apps #59

merged 14 commits into from
May 3, 2024

Conversation

svrooij
Copy link
Owner

@svrooij svrooij commented May 2, 2024

Having a command line tool that can easily add a Store app to Intune.

@svrooij svrooij added the PowerShell Issues related to the WinTuner PowerShell module label May 2, 2024
svrooij added 2 commits May 2, 2024 20:14
Adds a new unit test for `GraphStoreAppUploader` in `GraphStoreAppUploaderTests.cs` to verify the functionality of creating a Microsoft Store app in Intune using a specific package ID.

- Implements a test method `CreateStoreAppAsync_WithValidPackageId_CreatesAppSuccessfully` that mocks dependencies such as `GraphServiceClient`, `IFileManager`, and `Internal.MsStore.MicrosoftStoreClient` to simulate the app creation process.
- Verifies that the `CreateStoreAppAsync` method correctly interacts with mocked services to create an app with expected properties based on a given package ID.
- Ensures that the method handles the app creation process, including downloading the app icon and logging the appropriate information.


---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/svrooij/WingetIntune/pull/59?shareId=6768da5b-994f-483e-b903-95394dd61bf2).
@svrooij
Copy link
Owner Author

svrooij commented May 2, 2024

Adds a new unit test for GraphStoreAppUploader in GraphStoreAppUploaderTests.cs to verify the functionality of creating a Microsoft Store app in Intune using a specific package ID.

  • Implements a test method CreateStoreAppAsync_WithValidPackageId_CreatesAppSuccessfully that mocks dependencies such as GraphServiceClient, IFileManager, and Internal.MsStore.MicrosoftStoreClient to simulate the app creation process.
  • Verifies that the CreateStoreAppAsync method correctly interacts with mocked services to create an app with expected properties based on a given package ID.
  • Ensures that the method handles the app creation process, including downloading the app icon and logging the appropriate information.

For more details, open the Copilot Workspace session.

@svrooij svrooij merged commit d5488ed into main May 3, 2024
3 checks passed
@svrooij svrooij deleted the feature/ps-store-app branch May 3, 2024 16:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PowerShell Issues related to the WinTuner PowerShell module
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant