-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DP-724: Expose PendingRoles in the Organisation response
- Loading branch information
Showing
28 changed files
with
104 additions
and
85 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -74,14 +74,15 @@ [ organisation ] | |
organisationClient.Setup(client => client.GetOrganisationAsync(testOrganisationId)) | ||
.ReturnsAsync( | ||
new CO.CDP.Organisation.WebApiClient.Organisation( | ||
[], | ||
[], | ||
null, | ||
new ContactPoint("[email protected]", "Contact", "123", new Uri("http://whatever")), | ||
testOrganisationId, | ||
new Identifier("asd", "asd", "asd", new Uri("http://whatever")), | ||
"Org name", | ||
[ CO.CDP.Organisation.WebApiClient.PartyRole.Supplier, CO.CDP.Organisation.WebApiClient.PartyRole.Tenderer ] | ||
additionalIdentifiers: [], | ||
addresses: [], | ||
approvedOn: null, | ||
contactPoint: new ContactPoint("[email protected]", "Contact", "123", new Uri("http://whatever")), | ||
id: testOrganisationId, | ||
identifier: new Identifier("asd", "asd", "asd", new Uri("http://whatever")), | ||
name: "Org name", | ||
roles: [ Organisation.WebApiClient.PartyRole.Supplier, Organisation.WebApiClient.PartyRole.Tenderer ], | ||
details: new Details(approval: null, pendingRoles: []) | ||
) | ||
); | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -128,7 +128,7 @@ public async Task OnGet_ValidSession_ReturnsOrganisationDetailsAsync() | |
|
||
private static CO.CDP.Organisation.WebApiClient.Organisation GivenOrganisationClientModel(Guid? id) | ||
{ | ||
return new CO.CDP.Organisation.WebApiClient.Organisation(null, null,null, new ContactPoint("Main Contact", "[email protected]", "123456789", null), id!.Value, null, null, []); | ||
return new CO.CDP.Organisation.WebApiClient.Organisation(additionalIdentifiers: null, addresses: null,approvedOn: null, contactPoint: new ContactPoint("Main Contact", "[email protected]", "123456789", null), id: id ?? Guid.NewGuid(), identifier: null, name: null, roles: [], details: new Details(approval: null, pendingRoles: [])); | ||
} | ||
|
||
private OrganisationEmailModel GivenOrganisationEmailModel() | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -154,10 +154,12 @@ private static CO.CDP.Organisation.WebApiClient.Organisation OrganisationClientM | |
new( | ||
additionalIdentifiers: [new Identifier(id: "FakeId", legalName: "FakeOrg", scheme: "VAT", uri: null)], | ||
addresses: null, | ||
null, | ||
approvedOn: null, | ||
contactPoint: new ContactPoint(email: "[email protected]", name: null, telephone: null, url: new Uri("https://xyz.com")), | ||
id: id, | ||
identifier: null, | ||
name: "Test Org", | ||
roles: [PartyRole.Supplier]); | ||
roles: [PartyRole.Supplier], | ||
details: new Details(approval: null, pendingRoles: []) | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,12 +39,13 @@ public static CO.CDP.Organisation.WebApiClient.Organisation GivenOrganisationCli | |
new Address(countryName: "United Kingdom", country: "GB", locality: "London", postalCode: "L1", region: "South", streetAddress: "1 London Street", type: AddressType.Registered), | ||
new Address(countryName: "France", country: "FR", locality: "Paris", postalCode: "F1", region: "North", streetAddress: "1 Paris Street", type: AddressType.Postal) | ||
], | ||
null, | ||
approvedOn: null, | ||
contactPoint: new ContactPoint(email: "[email protected]", name: "fakecontact", telephone: "0123456789", url: new Uri("https://test.com")), | ||
id: id, | ||
identifier: null, | ||
name: "Test Org", | ||
roles: [PartyRole.Supplier] | ||
roles: [PartyRole.Supplier], | ||
details: new Details(approval: null, pendingRoles: []) | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -122,10 +122,12 @@ private static CO.CDP.Organisation.WebApiClient.Organisation OrganisationClientM | |
new( | ||
additionalIdentifiers: [new Identifier(id: "FakeId", legalName: "FakeOrg", scheme: "VAT", uri: null)], | ||
addresses: null, | ||
null, | ||
approvedOn: null, | ||
contactPoint: new ContactPoint(email: "[email protected]", name: null, telephone: null, url: new Uri("https://xyz.com")), | ||
id: id, | ||
identifier: null, | ||
name: "Test Org", | ||
roles: [PartyRole.Supplier]); | ||
roles: [PartyRole.Supplier], | ||
details: new Details(approval: null, pendingRoles: []) | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.