public void CheckSolutionAndMilestones() { const string userId1 = "1"; const string userId2 = "2"; const int assignmentId1 = 1; const int assignmentId2 = 2; List <Solution> solutions1 = assignmentServiceTest.GetSolutionsById(userId1, assignmentId1); List <Solution> solutions2 = assignmentServiceTest.GetSolutionsById(userId2, assignmentId2); Milestone milestone1 = assignmentServiceTest.GetMilestoneBySolution(solutions1[0]); Milestone milestone2 = assignmentServiceTest.GetMilestoneBySolution(solutions2[0]); Assert.AreEqual(milestone1.ID, solutions1[0].MilestoneID); Assert.AreEqual(milestone2.ID, solutions2[0].MilestoneID); Assert.AreEqual(userId1, solutions1[0].StudentID); Assert.AreEqual(userId2, solutions2[0].StudentID); }