public void MSMEETS_S01_TC04_AllowCreateOnWorkspaceError()
{
// Create a new workspace.
string workspaceTitle = TestSuiteBase.GetUniqueWorkspaceTitle();
SoapResult<CreateWorkspaceResponseCreateWorkspaceResult> createWorkspaceResult = this.meetsAdapter.CreateWorkspace(workspaceTitle, null, null, null);
Site.Assert.IsNull(createWorkspaceResult.Exception, "Create workspace should succeed");
// Send GetMeetingsInformation with requestFlags bit set to 0x1 to a web site that is a meeting workspace.
this.meetsAdapter.Url = createWorkspaceResult.Result.CreateWorkspace.Url + Common.GetConfigurationPropertyValue("EntryUrl", this.Site);
SoapResult<GetMeetingsInformationResponseGetMeetingsInformationResult> getMeetingsInformastionResult = this.meetsAdapter.GetMeetingsInformation(MeetingInfoTypes.AllowCreate, null);
// If the response contains the SOAP fault code "0x00000001", MS-MEETS_R196 can be verified.
Site.CaptureRequirementIfAreEqual<string>(
"0x00000001",
getMeetingsInformastionResult.GetErrorCode(),
196,
@"[In GetMeetingsInformationResponse]If the operation [GetMeetingsInformation]is sent to a web site that is a meeting workspace, the response MUST be a SOAP fault with SOAP fault code ""0x00000001"".");
// Clean up the SUT.
this.meetsAdapter.Url = createWorkspaceResult.Result.CreateWorkspace.Url + Common.GetConfigurationPropertyValue("EntryUrl", this.Site);
SoapResult<Null> deleteResult = this.meetsAdapter.DeleteWorkspace();
Site.Assert.IsNull(deleteResult.Exception, "DeleteWorkspace should succeed");
}