Skip to content

Commit

Permalink
Add isActive to contract to filter
Browse files Browse the repository at this point in the history
  • Loading branch information
martapederiva committed Jul 23, 2024
1 parent 2480685 commit 2a9d137
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ public void CanConvertQueryableAssetContractEntityToDomain()
domainContract.StartDate.Should().Be(queryableAssetContract.StartDate);
domainContract.ApprovalDate.Should().Be(queryableAssetContract.ApprovalDate);
domainContract.IsApproved.Should().Be(queryableAssetContract.IsApproved);
domainContract.IsActive.Should().Be(queryableAssetContract.IsActive);
domainContract.Charges.Should().BeEquivalentTo(queryableAssetContract.Charges);
domainContract.RelatedPeople.Should().BeEquivalentTo(queryableAssetContract.RelatedPeople);
}
Expand Down
1 change: 1 addition & 0 deletions Hackney.Shared.HousingSearch/Domain/Asset/Contract.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ public class Contract
public DateTime? StartDate { get; set; }
public DateTime? ApprovalDate { get; set; }
public bool? IsApproved { get; set; }
public bool? IsActive { get; set; }
public IEnumerable<Charges> Charges { get; set; }
public IEnumerable<RelatedPeople> RelatedPeople { get; set; }
}
Expand Down
1 change: 1 addition & 0 deletions Hackney.Shared.HousingSearch/Domain/Contract/Contract.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ public class Contract
public DateTime? StartDate { get; set; }
public DateTime? ApprovalDate { get; set; }
public bool? IsApproved { get; set; }
public bool? IsActive { get; set; }
public IEnumerable<QueryableCharges> Charges { get; set; }
public IEnumerable<QueryableRelatedPeople> RelatedPeople { get; set; }
}
Expand Down
1 change: 1 addition & 0 deletions Hackney.Shared.HousingSearch/Factories/DomainFactory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ public static Domain.Asset.Contract ToDomain(this QueryableAssetContract entity)
StartDate = entity.StartDate,
ApprovalDate = entity.ApprovalDate,
IsApproved = entity.IsApproved,
IsActive = entity.IsActive,
Charges = entity.Charges?.ToDomain(),
RelatedPeople = entity.RelatedPeople?.ToDomain(),
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ public class QueryableAssetContract
public DateTime? StartDate { get; set; }
public DateTime? ApprovalDate { get; set; }
public bool? IsApproved { get; set; }
public bool? IsActive { get; set; }
public IEnumerable<QueryableCharges> Charges { get; set; }
public IEnumerable<QueryableRelatedPeople> RelatedPeople { get; set; }
}
Expand Down

0 comments on commit 2a9d137

Please sign in to comment.