public void CreateDbRegistation(string uln)
        {
            var profileId = SqlQueries.CreateRegistrationProfile(uln);
            var pathwayId = SqlQueries.CreateRegistrationPathway(profileId);

            SqlQueries.CreateRegSpecialism(pathwayId);
        }
Exemple #2
0
        protected static void CreateDbRegWithAssessment(string uln)
        {
            var profileId = SqlQueries.CreateRegistrationProfile(uln);
            var pathwayId = SqlQueries.CreateRegistrationPathway(profileId);

            SqlQueries.CreateRegSpecialism(pathwayId);
            SqlQueries.CreatePathwayAssessment(pathwayId);
        }
        public void CreateDbRegWithResult(string uln)
        {
            //var uln = UlnHelper.GenerateUln().ToString();
            var profileId = SqlQueries.CreateRegistrationProfile(uln);
            var pathwayId = SqlQueries.CreateRegistrationPathway(profileId);

            SqlQueries.CreateRegSpecialism(pathwayId);
            var pathwayAssessmentId = SqlQueries.CreatePathwayAssessment(pathwayId);

            SqlQueries.CreatePathwayResult(pathwayAssessmentId);
        }
Exemple #4
0
        protected static void CreateDbRegWithResultAndTwoAssessmentEntries(string uln)
        {
            var profileId = SqlQueries.CreateRegistrationProfile(uln);
            var pathwayId = SqlQueries.CreateRegistrationPathway(profileId);

            SqlQueries.CreateRegSpecialism(pathwayId);
            var pathwayAssessmentId = SqlQueries.CreatePathwayAssessment(pathwayId);

            SqlQueries.CreatePathwayResult(pathwayAssessmentId);
            SqlQueries.CreateSecondPathwayAssessmentEntry(pathwayId);
            //SqlQueries.CreatePathwayResult(pathwayAssessmentId1);
        }
Exemple #5
0
        protected static void CreateRegWithAppealState(string uln)
        {
            var profileId = SqlQueries.CreateRegistrationProfile(uln);
            var pathwayId = SqlQueries.CreateRegistrationPathway(profileId);

            SqlQueries.CreateRegSpecialism(pathwayId);
            var pathwayAssessmentId = SqlQueries.CreatePathwayAssessment(pathwayId);

            SqlQueries.CreatePathwayResult(pathwayAssessmentId);
            var updateResult = "update TqPathwayResult set EndDate = GETDATE() where TqPathwayAssessmentId='" + pathwayAssessmentId + "'";

            SqlDatabaseConncetionHelper.UpdateSqlCommand(updateResult, ConnectionString);
            var insertAppealRow = "Insert into TqPathwayResult values('" + pathwayAssessmentId + "',2,GETDATE(),Null,3,1,0,GETDATE(),'System',GETDATE(),'System')";

            SqlDatabaseConncetionHelper.ExecuteSqlCommand(insertAppealRow, ConnectionString);
        }