public static TqRegistrationPathway CreateTqRegistrationPathway(ResultsAndCertificationDbContext _dbContext, bool addToDbContext = true)
        {
            var tqRegistrationPathway = new TqRegistrationPathwayBuilder().Build();

            if (addToDbContext)
            {
                _dbContext.Add(tqRegistrationPathway);
            }
            return(tqRegistrationPathway);
        }
        public static TqRegistrationPathway CreateTqRegistrationPathway(ResultsAndCertificationDbContext _dbContext, TqRegistrationProfile tqRegistrationProfile, TqProvider tqProvider, bool addToDbContext = true)
        {
            if (tqRegistrationProfile == null)
            {
                tqRegistrationProfile = new TqRegistrationProfileBuilder().Build();
            }

            var tqRegistrationPathway = new TqRegistrationPathwayBuilder().Build(tqRegistrationProfile);

            if (tqProvider != null)
            {
                tqRegistrationPathway.TqProviderId = tqProvider.Id;
                tqRegistrationPathway.TqProvider   = tqProvider;
            }

            if (addToDbContext)
            {
                _dbContext.Add(tqRegistrationPathway);
            }
            return(tqRegistrationPathway);
        }