-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
108 changed files
with
1,761 additions
and
1,251 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 |
---|---|---|
|
@@ -9,7 +9,7 @@ namespace PidpTests.Features.Parties; | |
public class DemographicsTests : InMemoryDbTest | ||
{ | ||
[Fact] | ||
public async void UpdatePartyDemographics_NewParty_PropertiesUpdatedNoDomainEvent() | ||
public async Task UpdatePartyDemographics_NewParty_PropertiesUpdatedDomainEvent() | ||
{ | ||
var party = this.TestDb.HasAParty(party => | ||
{ | ||
|
@@ -19,7 +19,7 @@ public async void UpdatePartyDemographics_NewParty_PropertiesUpdatedNoDomainEven | |
var command = new Command | ||
{ | ||
Id = party.Id, | ||
Email = "pidp.test@goh.com", | ||
Email = "pidp.test@email.com", | ||
Phone = "5555555555", | ||
PreferredFirstName = "PFirst", | ||
PreferredMiddleName = "PMid", | ||
|
@@ -36,11 +36,14 @@ public async void UpdatePartyDemographics_NewParty_PropertiesUpdatedNoDomainEven | |
Assert.Equal(command.PreferredMiddleName, updatedParty.PreferredMiddleName); | ||
Assert.Equal(command.PreferredLastName, updatedParty.PreferredLastName); | ||
|
||
Assert.Empty(this.PublishedEvents.OfType<PartyEmailUpdated>()); | ||
Assert.Single(this.PublishedEvents.OfType<PartyEmailUpdated>()); | ||
var emailEvent = this.PublishedEvents.OfType<PartyEmailUpdated>().Single(); | ||
Assert.Equal(party.Id, emailEvent.PartyId); | ||
Assert.Equal(command.Email, emailEvent.NewEmail); | ||
} | ||
|
||
[Fact] | ||
public async void UpdatePartyDemographics_ExistingParty_PropertiesUpdatedDomainEvent() | ||
public async Task UpdatePartyDemographics_ExistingParty_PropertiesUpdatedDomainEvent() | ||
{ | ||
var party = this.TestDb.HasAParty(party => | ||
{ | ||
|
@@ -79,7 +82,7 @@ public async void UpdatePartyDemographics_ExistingParty_PropertiesUpdatedDomainE | |
} | ||
|
||
[Fact] | ||
public async void UpdatePartyDemographics_ExistingParty_TrimPreferredNames() | ||
public async Task UpdatePartyDemographics_ExistingParty_TrimPreferredNames() | ||
{ | ||
var party = this.TestDb.HasAParty(party => | ||
{ | ||
|
@@ -114,7 +117,7 @@ public async void UpdatePartyDemographics_ExistingParty_TrimPreferredNames() | |
} | ||
|
||
[Fact] | ||
public async void UpdatePartyDemographics_ExistingPartySameEmail_NoDomainEvent() | ||
public async Task UpdatePartyDemographics_ExistingPartySameEmail_NoDomainEvent() | ||
{ | ||
var party = this.TestDb.HasAParty(party => party.Email = "[email protected]"); | ||
var command = new Command | ||
|
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
Oops, something went wrong.