private CustomerBasket CreateCustomerBasket(CustomerBasketBusResponse customerResponse, AddressBasket address, AddressCorrespondenceBasket correspondenceAddress, IdentityType identityType) { return(new CustomerBasket(customerResponse.Id, customerResponse.Name, customerResponse.Surname, new EmailBasket(customerResponse.Email), new IdCardBasket(customerResponse.PersonIdCard, identityType), identityType, customerResponse.Nationality, customerResponse.Phone, customerResponse.DateOfBirth, address, correspondenceAddress)); }
private AddressCorrespondenceBasket CreateAddressCorrespondenceBasket(CustomerBasketBusResponse customerResponse) { return(new AddressCorrespondenceBasket(customerResponse.Address.Adres, customerResponse.Address.City, new PostCodeBasket(customerResponse.Address.PostCode), customerResponse.Address.Post, customerResponse.Address.Country)); }