Example #1
0
        public void ExperienceRepository_Get_Works()
        {
            var original = new ExperienceEntity();

            original.Employer = "test";
            var guid       = Guid.NewGuid();
            var mockXml    = new Mock <IExperienceXMLService>();
            var mockKernel = new Mock <IKernel>();

            mockXml.Setup(T => T.Get(guid)).Returns(original);
            var repos = new ExperienceRepository(mockXml.Object, new VitaeNinjectKernel());

            var itemReturned = repos.Get(guid);

            Assert.IsNotNull(itemReturned);
            Assert.AreEqual(original.Employer, itemReturned.Employer);
        }