file-scoped namespaces
This commit is contained in:
@@ -1,24 +1,23 @@
|
||||
namespace Domains
|
||||
namespace Domains;
|
||||
|
||||
public static class ConfigurationConstraints
|
||||
{
|
||||
public static class ConfigurationConstraints
|
||||
{
|
||||
public const int CityNameLength = 70;
|
||||
public const int CountryNameLength = 70;
|
||||
public const int CitizenshipLength = 30;
|
||||
public const int ReentryPermitNumberLength = 25;
|
||||
public const int IssuerNameLength = 200;
|
||||
public const int VisaNameLength = 70;
|
||||
public const int StreetNameLength = 100;
|
||||
public const int PlaceOfWorkNameLength = 200;
|
||||
public const int NameLength = 50;
|
||||
public const int BuildingNumberLength = 10;
|
||||
public const int PassportNumberLength = 20;
|
||||
public const int PhoneNumberLength = 13;
|
||||
public const int PhoneNumberMinLength = 11;
|
||||
public const int EmailLength = 254;
|
||||
public const int PasswordLength = 50;
|
||||
public const int ApplicantMinAge = 14;
|
||||
public const int JobTitleLength = 50;
|
||||
public const int MaxValidDays = 90;
|
||||
}
|
||||
}
|
||||
public const int CityNameLength = 70;
|
||||
public const int CountryNameLength = 70;
|
||||
public const int CitizenshipLength = 30;
|
||||
public const int ReentryPermitNumberLength = 25;
|
||||
public const int IssuerNameLength = 200;
|
||||
public const int VisaNameLength = 70;
|
||||
public const int StreetNameLength = 100;
|
||||
public const int PlaceOfWorkNameLength = 200;
|
||||
public const int NameLength = 50;
|
||||
public const int BuildingNumberLength = 10;
|
||||
public const int PassportNumberLength = 20;
|
||||
public const int PhoneNumberLength = 13;
|
||||
public const int PhoneNumberMinLength = 11;
|
||||
public const int EmailLength = 254;
|
||||
public const int PasswordLength = 50;
|
||||
public const int ApplicantMinAge = 14;
|
||||
public const int JobTitleLength = 50;
|
||||
public const int MaxValidDays = 90;
|
||||
}
|
||||
@@ -1,13 +1,12 @@
|
||||
namespace Domains.Users
|
||||
namespace Domains.Users;
|
||||
|
||||
/// Role of <see cref="User"/>
|
||||
public enum Role
|
||||
{
|
||||
/// Role of <see cref="User"/>
|
||||
public enum Role
|
||||
{
|
||||
/// Requests visa applications
|
||||
Applicant,
|
||||
/// Approves or declines applications
|
||||
ApprovingAuthority,
|
||||
/// Manages approving authorities
|
||||
Admin
|
||||
}
|
||||
}
|
||||
/// Requests visa applications
|
||||
Applicant,
|
||||
/// Approves or declines applications
|
||||
ApprovingAuthority,
|
||||
/// Manages approving authorities
|
||||
Admin
|
||||
}
|
||||
@@ -1,14 +1,13 @@
|
||||
namespace Domains.Users
|
||||
namespace Domains.Users;
|
||||
|
||||
public class User : IEntity
|
||||
{
|
||||
public class User : IEntity
|
||||
{
|
||||
/// Unique Identifier of <see cref="User"/>
|
||||
public Guid Id { get; private set; } = Guid.NewGuid();
|
||||
/// Unique Identifier of <see cref="User"/>
|
||||
public Guid Id { get; private set; } = Guid.NewGuid();
|
||||
|
||||
public Role Role { get; set; }
|
||||
public Role Role { get; set; }
|
||||
|
||||
public string Email { get; set; } = null!;
|
||||
public string Email { get; set; } = null!;
|
||||
|
||||
public string Password { get; set; } = null!;
|
||||
}
|
||||
}
|
||||
public string Password { get; set; } = null!;
|
||||
}
|
||||
@@ -1,12 +1,11 @@
|
||||
namespace Domains.VisaApplicationDomain
|
||||
namespace Domains.VisaApplicationDomain;
|
||||
|
||||
public enum ApplicationStatus
|
||||
{
|
||||
public enum ApplicationStatus
|
||||
{
|
||||
/// Waits for approve
|
||||
Pending,
|
||||
Approved,
|
||||
Rejected,
|
||||
/// Closed by applicant
|
||||
Closed
|
||||
}
|
||||
}
|
||||
/// Waits for approve
|
||||
Pending,
|
||||
Approved,
|
||||
Rejected,
|
||||
/// Closed by applicant
|
||||
Closed
|
||||
}
|
||||
Reference in New Issue
Block a user