public void SaveContent_DefaultEditor_WithContent_Success([Values(true, false)] bool withUserId)
        {
            // Arrange
            var rblContentType = _testObject.GetFieldOrProperty("rblContentType") as RadioButtonList;

            rblContentType.Items.Add("false");
            rblContentType.SelectedValue = "false";
            var folderID = _testObject.GetFieldOrProperty("folderID") as DropDownList;

            folderID.Items.Add("0");
            folderID.SelectedValue = "0";
            var txtEditorSource = _testObject.GetFieldOrProperty("txtEditorSource") as TextBox;

            txtEditorSource.Text = "test1";
            var txtEditorMobile = _testObject.GetFieldOrProperty("txtEditorMobile") as TextBox;

            txtEditorMobile.Text = "test2";
            var drpUserID = _testObject.GetFieldOrProperty("drpUserID") as DropDownList;

            drpUserID.Items.Add("0");
            drpUserID.Items.Add("1");
            QueryString.Add("ContentID", "1");
            if (withUserId)
            {
                drpUserID.SelectedValue = "1";
            }
            else
            {
                drpUserID.SelectedValue = "0";
            }
            ECN_Framework_Entities.Communicator.Content content = null;
            ShimContent.SaveContentUser = (p1, p2) => { content = p1; return(0); };
            ShimContent.GetByContentIDInt32UserBoolean = (p1, p2, p3) =>
                                                         new ECN_Framework_Entities.Communicator.Content {
                IsValidated = true, CreatedUserID = 1
            };

            // Act, Assert
            Should.NotThrow(() => _testObject.Invoke("SaveContent", new object[] { }));
            content.ShouldSatisfyAllConditions(
                () => content.ShouldNotBeNull(),
                () => content.ContentSource.ShouldBe("test1"),
                () => content.ContentMobile.ShouldBe("test2"));
        }
        public void SaveContent_WYSWYCEditor_NoContent_Success()
        {
            // Arrange
            var rblContentType = _testObject.GetFieldOrProperty("rblContentType") as RadioButtonList;

            rblContentType.Items.Add("true");
            rblContentType.SelectedValue = "true";
            var folderID = _testObject.GetFieldOrProperty("folderID") as DropDownList;

            folderID.Items.Add("0");
            folderID.SelectedValue = "0";
            var fckEdior1 = _testObject.GetFieldOrProperty("FCKeditor1") as TextBox;

            fckEdior1.Text = "test1";
            ECN_Framework_Entities.Communicator.Content content = null;
            ShimContent.SaveContentUser = (p1, p2) => { content = p1; return(0); };

            // Act, Assert
            Should.NotThrow(() => _testObject.Invoke("SaveContent", new object[] { }));
            content.ShouldSatisfyAllConditions(
                () => content.ShouldNotBeNull(),
                () => content.ContentSource.ShouldBe("test1"),
                () => content.ContentMobile.ShouldBe("test1"));
        }