public void CanMapHousingInformationFromDomainToResponse()
        {
            var domain = new HousingResidentInformation
            {
                Uprn    = "uprn",
                Address = new HousingAddress()
                {
                    AddressLine1 = "addess11",
                    PropertyRef  = "my prop ref",
                    PostCode     = "Postcode"
                },
                FirstName   = "Name",
                LastName    = "Last",
                DateOfBirth = "DOB",
                PhoneNumber = new List <HousingPhone>
                {
                    new HousingPhone()
                    {
                        PhoneNumber = "number",
                        PhoneType   = HousingPhoneTypeEnum.F
                    }
                },
            };

            var expectedResponse = new HousingResidentInformationResponse
            {
                Uprn    = "uprn",
                Address = new AddressResponse()
                {
                    AddressLine1 = "addess11",
                    PostCode     = "Postcode"
                },
                FirstName   = "Name",
                LastName    = "Last",
                DateOfBirth = "DOB",
                PhoneNumber = new List <PhoneNumberResponse>
                {
                    new PhoneNumberResponse
                    {
                        PhoneNumber = "number",
                        PhoneType   = PhoneTypeResponse.Fax
                    }
                }
            };

            domain.ToResponse().Should().BeEquivalentTo(expectedResponse);
        }
        public void CanMapHousingInformationWithOnlyPersonalInformationFromDomainToResponse()
        {
            var domain = new HousingResidentInformation
            {
                Uprn        = "uprn",
                Address     = null,
                FirstName   = "Name",
                LastName    = "Last",
                DateOfBirth = "DOB",
                PhoneNumber = null,
            };

            var expectedResponse = new HousingResidentInformationResponse
            {
                Uprn        = "uprn",
                Address     = null,
                FirstName   = "Name",
                LastName    = "Last",
                DateOfBirth = "DOB",
                PhoneNumber = null
            };

            domain.ToResponse().Should().BeEquivalentTo(expectedResponse);
        }