public void LoadRelatedEntities_OnLoading_Should_Continue()
        {
            // Arrange
            var context = TestsHelper.CreateFamilyDbContext(CreateFamilyDbOptions);
            var contact = CreateTestContactsWithDetails(context)[0];

            context.Contacts.Attach(contact);

            // Act
            context.LoadRelatedEntities(contact, true, entities =>
            {
                contact.TrackingState = TrackingState.Added;
                return(true);
            }, (ex, entities) => true);

            // Assert
            Assert.NotNull(contact.ContactCategory);
            Assert.Equal(contact.ContactCategoryId, contact.ContactCategory.Id);
            Assert.Equal(TrackingState.Added, contact.TrackingState);
        }