public void BetByIdTestMethod() { var solutionRepository = new SolutionRepository(); var solution = solutionRepository.Get().FirstOrDefault(); var newSolution = solutionRepository.Get(solution.EntityId); Assert.AreEqual(newSolution.EntityId, solution.EntityId); }
public void DeleteTestMethod() { var solutionRepository = new SolutionRepository(); var solution = solutionRepository.Get(2); solutionRepository.Remove(solution); solution = solutionRepository.Get(2); Assert.IsNull(solution); }
public void UpdateTestMethod() { var solutionRepository = new SolutionRepository(); var solution = solutionRepository.Get(2); solution.Alias = "Core Solution"; solution.UpdatedBy = "Test"; solution.UpdatedOn = DateTime.Now; solution = solutionRepository.Update(solution); solution = solutionRepository.Get(2); Assert.AreEqual(solution.Alias, "Core Solution"); }
public void BetAllTestMethod() { var solutionRepository = new SolutionRepository(); var solutions = solutionRepository.Get(); Assert.AreEqual(solutions.Count(), 1); }