public void GivenJobApplication_whenUpdateFirstTime_ThenSelectionStepChangedToNextLevelAndListWillReturnCount_1() { //given var appId = Guid.NewGuid(); var newJobApplication = new JobApplicationBuilder() .WithId(appId) .WithCandidateId(Guid.NewGuid()) .WithCampaignId(Guid.NewGuid()) .WithStatus(StatusJobApplication.Active) .Build(); //When _jobApplicationRepository.Get(appId).Returns(newJobApplication); var updatedJobApplication = _jobApplicationService.GoToNextSelectionStepInSelectionProcess(appId.ToString()); //Then Assert.Single(updatedJobApplication.SelectionSteps); }