Ejemplo n.º 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");
        }
Ejemplo n.º 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");
        }