コード例 #1
0
 public void DeleteCandidateTest(Action action, CandidateTest candidateTest)
 {
     if (!IsOpen)
     {
         throw new BusinessRuleException("Unable to delete Candidate Test once the Test Instance has been set to Open");
     }
     action();
 }
コード例 #2
0
ファイル: Facade.cs プロジェクト: uminfaa02/TestViewerDomain
 private void deleteCandidateTest(CandidateTest candidateTest)
 {
     _context.CandidateTests.Remove(candidateTest);
 }
コード例 #3
0
 public void DeleteCandidateTest(Action action, Guid templateId, Guid instanceId, CandidateTest candidateTest)
 {
     FetchTestTemplate(templateId).DeleteCandidateTest(action, instanceId, candidateTest);
 }
コード例 #4
0
 public override void Close(CandidateTest test)
 {
     test.StateId = (int)ExamState.Closed;
 }
コード例 #5
0
 public override void Start(CandidateTest test)
 {
     test.StateId = (int)ExamState.InProgress;
 }
コード例 #6
0
 public abstract void Start(CandidateTest test);
コード例 #7
0
 public override void Activate(CandidateTest test)
 {
     //NO-OP
 }
コード例 #8
0
 public abstract void Activate(CandidateTest test);
コード例 #9
0
 public abstract void Close(CandidateTest test);
コード例 #10
0
 public override void Activate(CandidateTest test)
 {
     throw new BusinessRuleException("The test is already in progress");
 }
コード例 #11
0
 public override void Start(CandidateTest test)
 {
     // NO-OP
 }
コード例 #12
0
 public void DeleteCandidateTest(Action action, Guid instanceId, CandidateTest candidateTest)
 {
     FetchTestInstance(instanceId).DeleteCandidateTest(action, candidateTest);
 }
コード例 #13
0
 public override void Start(CandidateTest test)
 {
     throw new BusinessRuleException("The test must be activated prior to starting");
 }
コード例 #14
0
 public override void Activate(CandidateTest test)
 {
     test.StateId = (int)ExamState.Active;
 }
コード例 #15
0
 public override void Start(CandidateTest test)
 {
     throw new BusinessRuleException("The test has already been closed and can not be restarted");
 }
コード例 #16
0
 public override void Close(CandidateTest test)
 {
     //NO-OP
 }