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 741a672 commit c147c21
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +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.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: 1 addition & 1 deletion Hackney.Shared.HousingSearch/Domain/Contract/Contract.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public class Contract
public DateTime? StartDate { get; set; }
public DateTime? ApprovalDate { get; set; }
public DateTime? EndDate { get; set; }
public string EndReason { 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: 1 addition & 1 deletion Hackney.Shared.HousingSearch/Factories/DomainFactory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ public static Domain.Asset.Contract ToDomain(this QueryableAssetContract entity)
TargetType = entity.TargetType,
StartDate = entity.StartDate,
EndDate = entity.EndDate,
EndReason= entity.EndReason,
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 @@ -15,7 +15,7 @@ public class QueryableAssetContract
public DateTime? StartDate { get; set; }
public DateTime? ApprovalDate { get; set; }
public DateTime? EndDate { get; set; }
public string EndReason { 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 c147c21

Please sign in to comment.