public void EducationRepository_Get_Works() { Guid g = Guid.NewGuid(); IEducationEntity ee = new EducationEntity { Credential = "c", Institution = "i" }; var mockXml = new Mock <IEducationXMLService>(); mockXml.Setup(T => T.Get(g)).Returns(ee); var repos = new EducationRepository(mockXml.Object); var edItem = repos.Get(g); Assert.IsNotNull(edItem); Assert.AreEqual("c", edItem.Credential); Assert.AreEqual("i", edItem.Institution); }