public void GetExperienceDetailsForEmployer_Works() { var employer = Guid.NewGuid().ToString(); var experienceEntity = new ExperienceEntity { Employer = employer, Details = new List <string> { "1", "2", "3", "4", "5" } }; var mock = new Mock <IExperienceXMLService>(); mock.Setup(T => T.GetAll()).Returns(new List <IExperienceEntity> { experienceEntity }); var repos = new ExperienceRepository(mock.Object, new VitaeNinjectKernel()); var list = repos.GetExperienceDetailsForEmployer(employer); Assert.IsNotNull(list); Assert.AreEqual(5, list.Count); Assert.AreEqual(employer, list[2].Employer); Assert.AreEqual("3", list[2].ExperienceDetail); }