Skip to content

Added package model and tests - #6277

Merged
jgonz120 merged 1 commit into
dev-feature-PackageDomainModelfrom
dev-jgonz120-AddPackageBaseModel
Feb 24, 2025
Merged

jgonz120 merged 1 commit into
dev-feature-PackageDomainModelfrom
dev-jgonz120-AddPackageBaseModel

Conversation

@jgonz120

@jgonz120 jgonz120 commented Feb 19, 2025 •

Copy link
Copy Markdown
Contributor

Bug

Fixes: https://github.com/NuGet/Client.Engineering/issues/3185

Description

Added the base abstract class which will represent a package in the new data model.

PR Checklist

  • Meaningful title, helpful description and a linked NuGet/Home issue
  • Added tests
  • Link to an issue or pull request to update docs if this PR changes settings, environment variables, new feature, etc.

@jgonz120
jgonz120 requested a review from a team as a code owner February 19, 2025 21:51
@jgonz120
jgonz120 requested a review from Copilot February 19, 2025 21:51

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

@jebriede

Copy link
Copy Markdown
Contributor

Please create and link a GitHub issue to the PR.

@jgonz120
jgonz120 requested review from Copilot and jebriede February 20, 2025 18:04

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

@jgonz120
jgonz120 changed the base branch from dev to dev-feature-PackageDomainModel February 20, 2025 19:57
@jgonz120 jgonz120 closed this Feb 20, 2025
@jgonz120
jgonz120 force-pushed the dev-jgonz120-AddPackageBaseModel branch from fdedd2c to 6a2ad25 Compare February 20, 2025 21:00
@jgonz120 jgonz120 reopened this Feb 20, 2025
@jgonz120
jgonz120 requested review from Copilot and nkolev92 February 20, 2025 21:32

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

@jebriede jebriede left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approving with a test suggestion

public class PackageModelTests
{
[Fact]
public void PackageModelCtr_IdAndVersion_ReturnsValueFromIdentity()

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: This method is actually testing the return value of two related, but distinct properties, not the constructor. Consider breaking this into two tests and name them according to which getters are tested. Note, you can share the same package identity arrangement between both tests by using a setup / constructor for this test class.

@jgonz120
jgonz120 merged commit 98423f0 into dev-feature-PackageDomainModel Feb 24, 2025
@jgonz120
jgonz120 deleted the dev-jgonz120-AddPackageBaseModel branch February 24, 2025 19:07
jebriede pushed a commit that referenced this pull request Mar 24, 2025
jebriede pushed a commit that referenced this pull request Apr 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants