Beispiel #1
0
        public void SymptomManager_UpdateSymptomLog()
        {
            SymptomManager m = new SymptomManager(new TreeMonDbContext(connectionKey));

            m.InsertLog(new SymptomLog()
            {
                AccountId = "a",
                Name      = "TESTRECORD",
                DoseUUID  = "D"
            });
            SymptomLog s = m.GetSymptomLog("TESTRECORD");

            s.Name = "UPDATEDRECORD";

            Assert.AreEqual(m.UpdateSymptomLog(s).Code, 200);
            SymptomLog u = m.GetSymptomLog("UPDATEDRECORD");

            Assert.IsNotNull(u);
        }