Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TS-1614: Adding data about the end of an assetContract #85

Merged
merged 2 commits into from
Oct 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ public void CanConvertQueryableAssetContractEntityToDomain()
domainContract.TargetType.Should().Be(queryableAssetContract.TargetType);
domainContract.StartDate.Should().Be(queryableAssetContract.StartDate);
domainContract.ApprovalDate.Should().Be(queryableAssetContract.ApprovalDate);
domainContract.EndDate.Should().Be(queryableAssetContract.EndDate);
domainContract.EndReason.Should().Be(queryableAssetContract.EndReason);
domainContract.IsApproved.Should().Be(queryableAssetContract.IsApproved);
domainContract.ApprovalStatus.Should().Be(queryableAssetContract.ApprovalStatus);
domainContract.ApprovalStatusReason.Should().Be(queryableAssetContract.ApprovalStatusReason);
Expand Down
2 changes: 2 additions & 0 deletions Hackney.Shared.HousingSearch/Domain/Asset/Contract.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ public class Contract
public string TargetType { get; set; }
public DateTime? StartDate { get; set; }
public DateTime? ApprovalDate { get; set; }
public DateTime? EndDate { get; set; }
public string EndReason { get; set; }
public bool? IsApproved { get; set; }
public ApprovalStatus ApprovalStatus { get; set; }
public string ApprovalStatusReason { get; set; }
Expand Down
2 changes: 2 additions & 0 deletions Hackney.Shared.HousingSearch/Domain/Contract/Contract.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ public class Contract
public string TargetType { get; set; }
public DateTime? StartDate { get; set; }
public DateTime? ApprovalDate { get; set; }
public DateTime? EndDate { get; set; }
public string EndReason { get; set; }
public bool? IsApproved { get; set; }
public ApprovalStatus ApprovalStatus { get; set; }
public string ApprovalStatusReason { get; set; }
Expand Down
2 changes: 2 additions & 0 deletions Hackney.Shared.HousingSearch/Factories/DomainFactory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,8 @@ public static Domain.Asset.Contract ToDomain(this QueryableAssetContract entity)
TargetId = entity.TargetId,
TargetType = entity.TargetType,
StartDate = entity.StartDate,
EndDate = entity.EndDate,
EndReason = entity.EndReason,
ApprovalDate = entity.ApprovalDate,
IsApproved = entity.IsApproved,
ApprovalStatus = entity.ApprovalStatus,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ public class QueryableAssetContract
public string TargetType { get; set; }
public DateTime? StartDate { get; set; }
public DateTime? ApprovalDate { get; set; }
public DateTime? EndDate { get; set; }
public string EndReason { get; set; }
public bool? IsApproved { get; set; }
public ApprovalStatus ApprovalStatus { get; set; }
public string ApprovalStatusReason { get; set; }
Expand Down
Loading