Вытащил солюшен на уровень выше, чтобы прощё было дотнетить
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
18
Domains/ApplicantDomain/Address.cs
Normal file
18
Domains/ApplicantDomain/Address.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
namespace Domains.ApplicantDomain;
|
||||
|
||||
/// Model of address
|
||||
/// <remarks>Owned</remarks>
|
||||
public class Address
|
||||
{
|
||||
/// Country part of address
|
||||
public string Country { get; set; } = null!;
|
||||
|
||||
/// City part of address
|
||||
public string City { get; set; } = null!;
|
||||
|
||||
/// Street part of address
|
||||
public string Street { get; set; } = null!;
|
||||
|
||||
/// Building part of address
|
||||
public string Building { get; set; } = null!;
|
||||
}
|
||||
52
Domains/ApplicantDomain/Applicant.cs
Normal file
52
Domains/ApplicantDomain/Applicant.cs
Normal file
@@ -0,0 +1,52 @@
|
||||
namespace Domains.ApplicantDomain;
|
||||
|
||||
/// Model of an applicant
|
||||
public class Applicant : IEntity
|
||||
{
|
||||
/// Unique identifier of the <see cref="Applicant"/>
|
||||
public Guid Id { get; private set; } = Guid.NewGuid();
|
||||
|
||||
public Guid UserId { get; set; }
|
||||
|
||||
/// Full name of the <see cref="Applicant"/>
|
||||
public Name Name { get; set; } = null!;
|
||||
|
||||
/// Passport of <see cref="Applicant"/>
|
||||
public Passport Passport { get; set; } = null!;
|
||||
|
||||
/// Date of birth of the <see cref="Applicant"/>
|
||||
public DateTime BirthDate { get; set; }
|
||||
|
||||
/// Country of birth of the <see cref="Applicant"/>
|
||||
public string CountryOfBirth { get; set; } = null!;
|
||||
|
||||
/// City of birth of the <see cref="Applicant"/>
|
||||
public string CityOfBirth { get; set; } = null!;
|
||||
|
||||
/// Citizenship of <see cref="Applicant"/>
|
||||
public string Citizenship { get; set; } = null!;
|
||||
|
||||
/// Citizenship by birth of <see cref="Applicant"/>
|
||||
public string CitizenshipByBirth { get; set; } = null!;
|
||||
|
||||
/// Gender of <see cref="Applicant"/>
|
||||
public Gender Gender { get; set; }
|
||||
|
||||
/// Marital status of <see cref="Applicant"/>
|
||||
public MaritalStatus MaritalStatus { get; set; }
|
||||
|
||||
/// Full name of the <see cref="Applicant"/>'s father
|
||||
public Name FatherName { get; set; } = null!;
|
||||
|
||||
/// Full name of the <see cref="Applicant"/>'s mother
|
||||
public Name MotherName { get; set; } = null!;
|
||||
|
||||
/// Position of <see cref="Applicant"/>
|
||||
public string JobTitle { get; set; } = null!;
|
||||
|
||||
/// Place of <see cref="Applicant"/>'s work
|
||||
public PlaceOfWork PlaceOfWork { get; set; } = null!;
|
||||
|
||||
/// Is <see cref="Applicant"/> a non-resident
|
||||
public bool IsNonResident { get; set; }
|
||||
}
|
||||
9
Domains/ApplicantDomain/Gender.cs
Normal file
9
Domains/ApplicantDomain/Gender.cs
Normal file
@@ -0,0 +1,9 @@
|
||||
namespace Domains.ApplicantDomain;
|
||||
|
||||
public enum Gender
|
||||
{
|
||||
Unknown,
|
||||
Male,
|
||||
Female,
|
||||
Turkish
|
||||
}
|
||||
10
Domains/ApplicantDomain/MaritalStatus.cs
Normal file
10
Domains/ApplicantDomain/MaritalStatus.cs
Normal file
@@ -0,0 +1,10 @@
|
||||
namespace Domains.ApplicantDomain;
|
||||
|
||||
public enum MaritalStatus
|
||||
{
|
||||
Other,
|
||||
Married,
|
||||
Unmarried,
|
||||
Separated,
|
||||
WidowOrWidower
|
||||
}
|
||||
12
Domains/ApplicantDomain/Name.cs
Normal file
12
Domains/ApplicantDomain/Name.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
namespace Domains.ApplicantDomain;
|
||||
|
||||
/// Model of full name
|
||||
/// <remarks>Owned</remarks>
|
||||
public class Name
|
||||
{
|
||||
public string FirstName { get; set; } = null!;
|
||||
|
||||
public string Surname { get; set; } = null!;
|
||||
|
||||
public string? Patronymic { get; set; }
|
||||
}
|
||||
18
Domains/ApplicantDomain/Passport.cs
Normal file
18
Domains/ApplicantDomain/Passport.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
namespace Domains.ApplicantDomain;
|
||||
|
||||
/// Model of passport
|
||||
/// <remarks>Owned</remarks>
|
||||
public class Passport
|
||||
{
|
||||
/// Number of <see cref="Passport"/>
|
||||
public string Number { get; set; } = null!;
|
||||
|
||||
/// Issuing authority of <see cref="Passport"/>
|
||||
public string Issuer { get; set; } = null!;
|
||||
|
||||
/// Date of issue
|
||||
public DateTime IssueDate { get; set; }
|
||||
|
||||
/// Date when the <see cref="Passport"/> expires
|
||||
public DateTime ExpirationDate { get; set; }
|
||||
}
|
||||
16
Domains/ApplicantDomain/PlaceOfWork.cs
Normal file
16
Domains/ApplicantDomain/PlaceOfWork.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
namespace Domains.ApplicantDomain;
|
||||
|
||||
public class PlaceOfWork : IEntity
|
||||
{
|
||||
/// Unique identifier of <see cref="PlaceOfWork"/>
|
||||
public Guid Id { get; private set; } = Guid.NewGuid();
|
||||
|
||||
/// Name of hirer
|
||||
public string Name { get; set; } = null!;
|
||||
|
||||
/// <see cref="ApplicantDomain.Address"/> of hirer
|
||||
public Address Address { get; set; } = null!;
|
||||
|
||||
/// Phone number of hirer
|
||||
public string PhoneNum { get; set; } = null!;
|
||||
}
|
||||
Reference in New Issue
Block a user