Exemplo n.º 1
0
        public void TestUpdateAndRetrieve()
        {
            var repo = new NpsRepository();
            var id = Guid.NewGuid().ToString("N");
            var nps = TestSaveAndRetrieve(repo, id, string.Empty);
            nps.Comment = "some comment";
            repo.Update(nps);

            var result = repo.Get(id);
            Assert.IsNotNull(result);
            Assert.AreEqual("some comment", nps.Comment);
        }