-
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.
Merge branch 'main' into renovate/major-testcontainers-dotnet-monorepo
- Loading branch information
Showing
16 changed files
with
87 additions
and
84 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
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
48 changes: 14 additions & 34 deletions
48
Modules/Devices/src/Devices.Domain/Entities/Identities/IdentityDeletionConfiguration.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 |
---|---|---|
@@ -1,47 +1,27 @@ | ||
namespace Backbone.Modules.Devices.Domain.Entities.Identities; | ||
|
||
public class IdentityDeletionConfiguration | ||
public record IdentityDeletionConfiguration | ||
{ | ||
public static int LengthOfApprovalPeriod => 7; | ||
public static int LengthOfGracePeriod => 14; | ||
public static IdentityDeletionConfiguration Instance { get; private set; } = new(); | ||
|
||
public static GracePeriodNotificationConfiguration GracePeriodNotification1 { get; } = new() | ||
{ | ||
Time = 12 | ||
}; | ||
public double LengthOfApprovalPeriodInDays { get; set; } = 7; | ||
public double LengthOfGracePeriodInDays { get; set; } = 14; | ||
|
||
public static GracePeriodNotificationConfiguration GracePeriodNotification2 { get; } = new() | ||
{ | ||
Time = 10 | ||
}; | ||
public GracePeriodNotificationConfiguration GracePeriodNotification1 { get; set; } = new() { DaysBeforeEndOfGracePeriod = 12 }; | ||
public GracePeriodNotificationConfiguration GracePeriodNotification2 { get; set; } = new() { DaysBeforeEndOfGracePeriod = 10 }; | ||
public GracePeriodNotificationConfiguration GracePeriodNotification3 { get; set; } = new() { DaysBeforeEndOfGracePeriod = 5 }; | ||
|
||
public static GracePeriodNotificationConfiguration GracePeriodNotification3 { get; } = new() | ||
{ | ||
Time = 5 | ||
}; | ||
|
||
public static ApprovalReminderNotificationConfiguration ApprovalReminder1 { get; } = new() | ||
{ | ||
Time = 6 | ||
}; | ||
|
||
public static ApprovalReminderNotificationConfiguration ApprovalReminder2 { get; } = new() | ||
{ | ||
Time = 4 | ||
}; | ||
|
||
public static ApprovalReminderNotificationConfiguration ApprovalReminder3 { get; } = new() | ||
{ | ||
Time = 2 | ||
}; | ||
public ApprovalReminderNotificationConfiguration ApprovalReminder1 { get; set; } = new() { DaysBeforeEndOfApprovalPeriod = 6 }; | ||
public ApprovalReminderNotificationConfiguration ApprovalReminder2 { get; set; } = new() { DaysBeforeEndOfApprovalPeriod = 4 }; | ||
public ApprovalReminderNotificationConfiguration ApprovalReminder3 { get; set; } = new() { DaysBeforeEndOfApprovalPeriod = 2 }; | ||
} | ||
|
||
public class GracePeriodNotificationConfiguration | ||
public class ApprovalReminderNotificationConfiguration | ||
{ | ||
public int Time { get; init; } | ||
public double DaysBeforeEndOfApprovalPeriod { get; set; } | ||
} | ||
|
||
public class ApprovalReminderNotificationConfiguration | ||
public class GracePeriodNotificationConfiguration | ||
{ | ||
public int Time { get; init; } | ||
public double DaysBeforeEndOfGracePeriod { get; set; } | ||
} |
Oops, something went wrong.