public void MSLISTSWS_S02_TC05_ApplyContentTypeToList_WithListTitle_Succeed()
{
#region Add a list
string listId = TestSuiteHelper.CreateList();
bool isListCreatedSuccessfully = false;
isListCreatedSuccessfully = !string.IsNullOrEmpty(listId);
this.Site.Assert.IsTrue(isListCreatedSuccessfully, "Test suite should create the list successfully.");
#endregion Add a list
// Create another list and append the content type to the list.
string newListId = TestSuiteHelper.CreateList();
#region ApplyContentTypeToList
// Apply the contentType to the list.
ApplyContentTypeToListResponseApplyContentTypeToListResult applyResult = this.listswsAdapter.ApplyContentTypeToList(string.Empty, AdapterHelper.SiteDocumentContentTypeId, newListId);
this.Site.Assert.IsNotNull(applyResult, "The response of operation ApplyContentTypeToList is NULL.");
// If the ApplyContentTypeToList is successful, then capture R374.
Site.CaptureRequirementIfIsNotNull(
applyResult.Success,
374,
@"[In ApplyContentTypeToList operation] If the specified listName is a valid GUID and corresponds to the identification of a list on the site, use that list.");
#endregion ApplyContentTypeToList
}