Exemplo n.º 1
0
        public void create(Subject subject)
        {
            SqlLiteSimpleExecute.execute(queryConfigurator.createSubject(
                                             EncryptWorker.getInstance().encrypt(subject.Name)));
            for (int i = 0; i < subject.Tests.Count; i++)
            {
                testManipulator.create(subject.Tests.ElementAt(i), subject.Id);
            }

            SqlLiteSimpleExecute.execute(queryConfigurator.setApproveStatusToObject(
                                             DbTypes.subject));
        }