예제 #1
0
        public void Test_UserMessageService_UpdateFolder()
        {
            var folder = new UserMessageFolder
            {
                Title = "test 123",
                Slug = "test"
            };

            this.UserMessageService.UpdateFolder(folder);

            Assert.AreEqual("test-123", folder.Slug, "Slug");
        }
예제 #2
0
        public void Test_UserMessageService_InsertFolder()
        {
            var folder = new UserMessageFolder
            {
                Title = "test 123"
            };

            this.UserMessageService.InsertFolder(folder);

            Assert.AreEqual(1, folder.UserId, "UserId");
            Assert.AreEqual("test-123", folder.Slug, "Slug");
        }