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(); }
private void deleteCandidateTest(CandidateTest candidateTest) { _context.CandidateTests.Remove(candidateTest); }
public void DeleteCandidateTest(Action action, Guid templateId, Guid instanceId, CandidateTest candidateTest) { FetchTestTemplate(templateId).DeleteCandidateTest(action, instanceId, candidateTest); }
public override void Close(CandidateTest test) { test.StateId = (int)ExamState.Closed; }
public override void Start(CandidateTest test) { test.StateId = (int)ExamState.InProgress; }
public abstract void Start(CandidateTest test);
public override void Activate(CandidateTest test) { //NO-OP }
public abstract void Activate(CandidateTest test);
public abstract void Close(CandidateTest test);
public override void Activate(CandidateTest test) { throw new BusinessRuleException("The test is already in progress"); }
public override void Start(CandidateTest test) { // NO-OP }
public void DeleteCandidateTest(Action action, Guid instanceId, CandidateTest candidateTest) { FetchTestInstance(instanceId).DeleteCandidateTest(action, candidateTest); }
public override void Start(CandidateTest test) { throw new BusinessRuleException("The test must be activated prior to starting"); }
public override void Activate(CandidateTest test) { test.StateId = (int)ExamState.Active; }
public override void Start(CandidateTest test) { throw new BusinessRuleException("The test has already been closed and can not be restarted"); }
public override void Close(CandidateTest test) { //NO-OP }