public void Update()
        {
            var proxy = new ActivityProxy();
            ActivityDto dto = GetActivityDto();
            proxy.Insert(dto);

            Assert.IsTrue(dto.Uid > 0, "Uid must be > 0 after save.");

            dto.Title = "A nee Title.";
            dto.Type = "Note";

            proxy.Update(dto);

            var read = (ActivityDto) proxy.GetByUid(dto.Uid);

            ReflectionTester.AssertAreEqual("Activity", dto, read, "LastModified", "UtcLastModified");
        }
        public void TestIsDoneFlagUpdate()
        {
            var proxy = new ActivityProxy();
            ActivityDto insert = GetActivityDto();
            proxy.Insert(insert);

            var read = (ActivityDto) proxy.GetByUid(insert.Uid);
            read.Done = true;
            proxy.Update(read);

            var doneActivity = (ActivityDto) proxy.GetByUid(insert.Uid);
            Assert.IsTrue(doneActivity.Done);
        }