Inconsistency when using CustomerContact.CreateInstance

Fixed in

EPiServer.Commerce 13.13.0

Created

Nov 18, 2019

Updated

Dec 13, 2019

State

Closed, Fixed and tested


Description

Steps to reproduce

1. Install a QuickSilver site.
2. Create a new Organization with these addresses:

3. Using CustomerContact.CreateInstance

            var customerContact1 = CustomerContact.CreateInstance();
            var customerContact2 = CustomerContact.CreateInstance(PrincipalInfo.CurrentPrincipal);
 
            int count1 = customerContact1.ContactAddresses.Count();
            int count2 = customerContact2.ContactAddresses.Count();

Expected:
count1 = 0

Actual:
count1 = 7