Exemplo n.º 1
0
        public void DeleteSolution_SolutionNotFound(int projectId, int solutionId, string userName)
        {
            _solutionRepository.GetSingle(
                x => x.ID == solutionId &&
                x.ProjectID == projectId && x.Active).ReturnsForAnyArgs(SolutionList().FirstOrDefault(x => x.ID == solutionId && x.ProjectID == projectId && x.Active));

            var result = _projectProcessor.DeleteSolution(projectId, solutionId, userName);

            _solutionRepository.Update(Arg.Any <Solution>().DidNotReceive());
        }