Esempio n. 1
0
        public void TestNoWorkflowWithSuggestedJobsWorkflow()
        {
            var candidate = new Candidate {
                Id = Guid.NewGuid(), Status = CandidateStatus.AvailableNow
            };

            _candidatesCommand.CreateCandidate(candidate);
            _candidatesWorkflowCommand.AddSuggestedJobsWorkflow(candidate.Id, Guid.NewGuid());

            Assert.IsNull(_candidatesWorkflowCommand.GetStatusWorkflowId(candidate.Id));
            var without = _candidatesWorkflowQuery.GetCandidatesWithoutStatusWorkflow();

            Assert.AreEqual(1, without.Count);
            Assert.AreEqual(candidate.Id, without[0].Item1);
            Assert.AreEqual(candidate.Status, without[0].Item2);
        }
Esempio n. 2
0
 public void AttachWorkflow(Guid userId, Guid workflowId)
 {
     _workflowCommand.AddSuggestedJobsWorkflow(userId, workflowId);
 }