generated from gaepdit/template-app
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Refactor Pollutant class * Randomize selected user in test data * Add enforcement case data * Add enforcement action data * Add enforcement action reviews and stipulated penalties * Reorganize static common data files * Reorganize enforcement action subtypes * Configure Entity Framework DbContext * Fix unit tests
- Loading branch information
1 parent
c23c911
commit 7c5697b
Showing
47 changed files
with
921 additions
and
220 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
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 |
---|---|---|
@@ -1,12 +1,14 @@ | ||
using System.Text.Json.Serialization; | ||
using System.ComponentModel; | ||
using System.Text.Json.Serialization; | ||
|
||
namespace AirWeb.Domain.DataExchange; | ||
|
||
[JsonConverter(typeof(JsonStringEnumConverter))] | ||
public enum DataExchangeStatus | ||
{ | ||
[UsedImplicitly] Processed, | ||
[UsedImplicitly] Inserted, | ||
[UsedImplicitly] Updated, | ||
[UsedImplicitly] Deleted, | ||
[Description("NotIncluded"), UsedImplicitly] N, | ||
[Description("Processed"), UsedImplicitly] P, | ||
[Description("Inserted"), UsedImplicitly] I, | ||
[Description("Updated"), UsedImplicitly] U, | ||
[Description("Deleted"), UsedImplicitly] D, | ||
} |
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
19 changes: 0 additions & 19 deletions
19
src/Domain/EnforcementEntities/Actions/AdministrativeOrderResolved.cs
This file was deleted.
Oops, something went wrong.
19 changes: 19 additions & 0 deletions
19
src/Domain/EnforcementEntities/Actions/AoResolvedLetter.cs
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
using AirWeb.Domain.Identity; | ||
|
||
namespace AirWeb.Domain.EnforcementEntities.Actions; | ||
|
||
public class AoResolvedLetter : EnforcementAction | ||
{ | ||
// Constructors | ||
[UsedImplicitly] // Used by ORM. | ||
private AoResolvedLetter() { } | ||
|
||
internal AoResolvedLetter(Guid id, AdministrativeOrder administrativeOrder, ApplicationUser? user) | ||
: base(id, administrativeOrder.EnforcementCase, user) | ||
{ | ||
EnforcementActionType = EnforcementActionType.AoResolvedLetter; | ||
AdministrativeOrder = administrativeOrder; | ||
} | ||
|
||
public AdministrativeOrder AdministrativeOrder { get; init; } = null!; | ||
} |
19 changes: 19 additions & 0 deletions
19
src/Domain/EnforcementEntities/Actions/CoResolvedLetter.cs
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
using AirWeb.Domain.Identity; | ||
|
||
namespace AirWeb.Domain.EnforcementEntities.Actions; | ||
|
||
public class CoResolvedLetter : EnforcementAction | ||
{ | ||
// Constructors | ||
[UsedImplicitly] // Used by ORM. | ||
private CoResolvedLetter() { } | ||
|
||
internal CoResolvedLetter(Guid id, ConsentOrder consentOrder, ApplicationUser? user) | ||
: base(id, consentOrder.EnforcementCase, user) | ||
{ | ||
EnforcementActionType = EnforcementActionType.CoResolvedLetter; | ||
ConsentOrder = consentOrder; | ||
} | ||
|
||
public ConsentOrder ConsentOrder { get; init; } = null!; | ||
} |
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
19 changes: 0 additions & 19 deletions
19
src/Domain/EnforcementEntities/Actions/ConsentOrderResolved.cs
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.