From 429b2f3a6ce82616c0ebb1cc788bb1cfb986a000 Mon Sep 17 00:00:00 2001 From: Miles Alford Date: Mon, 10 Jun 2024 15:07:30 +0100 Subject: [PATCH] Private kitchen, bathroom and step-free nullable --- .../Domain/Asset/AssetCharacteristics.cs | 18 +++++++++--------- .../Assets/QueryableAssetCharacteristics.cs | 6 +++--- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/Hackney.Shared.HousingSearch/Domain/Asset/AssetCharacteristics.cs b/Hackney.Shared.HousingSearch/Domain/Asset/AssetCharacteristics.cs index 36901e1..b508dd0 100644 --- a/Hackney.Shared.HousingSearch/Domain/Asset/AssetCharacteristics.cs +++ b/Hackney.Shared.HousingSearch/Domain/Asset/AssetCharacteristics.cs @@ -4,10 +4,10 @@ public class AssetCharacteristics { public static AssetCharacteristics Create(int numberOfBedrooms, int numberOfLifts, int numberOfLivingRooms, string windowType, string yearConstructed, string assetPropertyFolderLink, string epcExpiryDate, string fireSafetyCertificateExpiryDate, string gasSafetyCertificateExpiryDate, string elecCertificateExpiryDate, - bool optionToTax, bool hasStairs, int numberOfStairs, bool hasRampAccess, bool hasCommunalAreas, bool hasPrivateBathroom, - int numberOfBathrooms, string bathroomFloor, bool hasPrivateKitchen, int numberOfKitchens, string kitchenfloor, + bool optionToTax, bool hasStairs, int numberOfStairs, bool hasRampAccess, bool hasCommunalAreas, bool? hasPrivateBathroom, + int numberOfBathrooms, string bathroomFloor, bool? hasPrivateKitchen, int numberOfKitchens, string kitchenfloor, string alertSystemExpiryDate, string epcScore, int numberOfFloors, string accessibilityComments, int numberOfBedSpaces, int numberOfCots, - string sleepingArrangementNotes, int numberOfShowers, string kitchenNotes, bool isStepFree) + string sleepingArrangementNotes, int numberOfShowers, string kitchenNotes, bool? isStepFree) { return new AssetCharacteristics( numberOfBedrooms, @@ -48,10 +48,10 @@ public AssetCharacteristics() { } private AssetCharacteristics(int numberOfBedrooms, int numberOfLifts, int numberOfLivingRooms, string windowType, string yearConstructed, string assetPropertyFolderLink, string epcExpiryDate, string fireSafetyCertificateExpiryDate, string gasSafetyCertificateExpiryDate, string elecCertificateExpiryDate, bool optionToTax, bool hasStairs, int numberOfStairs, - bool hasRampAccess, bool hasCommunalAreas, bool hasPrivateBathroom, int numberOfBathrooms, string bathroomFloor, - bool hasPrivateKitchen, int numberOfKitchens, string kitchenfloor, string alertSystemExpiryDate, string epcScore, + bool hasRampAccess, bool hasCommunalAreas, bool? hasPrivateBathroom, int numberOfBathrooms, string bathroomFloor, + bool? hasPrivateKitchen, int numberOfKitchens, string kitchenfloor, string alertSystemExpiryDate, string epcScore, int numberOfFloors, string accessibilityComments, int numberOfBedSpaces, int numberOfCots, string sleepingArrangementNotes, - int numberOfShowers, string kitchenNotes, bool isStepFree) + int numberOfShowers, string kitchenNotes, bool? isStepFree) { NumberOfBedrooms = numberOfBedrooms; NumberOfLifts = numberOfLifts; @@ -101,10 +101,10 @@ private AssetCharacteristics(int numberOfBedrooms, int numberOfLifts, int number public int NumberOfStairs { get; set; } public bool HasRampAccess { get; set; } public bool HasCommunalAreas { get; set; } - public bool HasPrivateBathroom { get; set; } + public bool? HasPrivateBathroom { get; set; } public int NumberOfBathrooms { get; set; } public string BathroomFloor { get; set; } - public bool HasPrivateKitchen { get; set; } + public bool? HasPrivateKitchen { get; set; } public int NumberOfKitchens { get; set; } public string Kitchenfloor { get; set; } public string AlertSystemExpiryDate { get; set; } @@ -116,6 +116,6 @@ private AssetCharacteristics(int numberOfBedrooms, int numberOfLifts, int number public string SleepingArrangementNotes { get; set; } public int NumberOfShowers { get; set; } public string KitchenNotes { get; set; } - public bool IsStepFree { get; set; } + public bool? IsStepFree { get; set; } } } diff --git a/Hackney.Shared.HousingSearch/Gateways/Models/Assets/QueryableAssetCharacteristics.cs b/Hackney.Shared.HousingSearch/Gateways/Models/Assets/QueryableAssetCharacteristics.cs index 6ac6a15..0f7cbd9 100644 --- a/Hackney.Shared.HousingSearch/Gateways/Models/Assets/QueryableAssetCharacteristics.cs +++ b/Hackney.Shared.HousingSearch/Gateways/Models/Assets/QueryableAssetCharacteristics.cs @@ -17,10 +17,10 @@ public class QueryableAssetCharacteristics public int NumberOfStairs { get; set; } public bool HasRampAccess { get; set; } public bool HasCommunalAreas { get; set; } - public bool HasPrivateBathroom { get; set; } + public bool? HasPrivateBathroom { get; set; } public int NumberOfBathrooms { get; set; } public string BathroomFloor { get; set; } - public bool HasPrivateKitchen { get; set; } + public bool? HasPrivateKitchen { get; set; } public int NumberOfKitchens { get; set; } public string Kitchenfloor { get; set; } public string AlertSystemExpiryDate { get; set; } @@ -32,6 +32,6 @@ public class QueryableAssetCharacteristics public string SleepingArrangementNotes { get; set; } public int NumberOfShowers { get; set; } public string KitchenNotes { get; set; } - public bool IsStepFree { get; set; } + public bool? IsStepFree { get; set; } } }