Skip to content

Commit

Permalink
Add end contract data
Browse files Browse the repository at this point in the history
  • Loading branch information
martapederiva committed Oct 21, 2024
1 parent 044817b commit 741a672
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 0 deletions.
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

0 comments on commit 741a672

Please sign in to comment.