public void GetAllExperienceItems_Works() { var list = new List <IExperienceEntity>(); for (int i = 0; i < 34; i++) { list.Add(new ExperienceEntity { Details = new List <string> { "asdf", "sdf" } }); } var mockXml = new Mock <IExperienceXMLService>(); mockXml.Setup(T => T.GetAll()).Returns(list); var repos = new ExperienceRepository(mockXml.Object, new VitaeNinjectKernel()); var newList = repos.GetAllExperienceItems(); Assert.IsNotNull(newList); Assert.AreEqual(34 * 2, newList.Count); }