CreateSheet() public method

Create a sheet in default "Sheets" collection.

It mirrors To the following Smartsheet REST API method:
POST /Sheets

if any argument is null or empty string if there is any problem with the REST API request if there is any problem with the REST API authorization (access token) if the resource cannot be found if the REST API service is not available (possibly due To rate limiting) if there is any other error during the operation
public CreateSheet ( Api.Models.Sheet sheet ) : Api.Models.Sheet
sheet Api.Models.Sheet the sheet To created
return Api.Models.Sheet
        public virtual void TestCreateSheet()
        {
            server.setResponseBody("../../../TestSDK/resources/createSheet.json");

            Sheet sheet = new Sheet();

            sheet.Name = "NEW TEST SHEET";
            List <Column> list = new List <Column>();
            Column        col  = new Column();

            col.Primary = true;
            col.Title   = "column1";
            col.Type    = ColumnType.TEXT_NUMBER;
            list.Add(col);
            col       = new Column();
            col.Title = "column2";
            col.Type  = ColumnType.TEXT_NUMBER;
            list.Add(col);

            sheet.Columns = list;
            Sheet newSheet = sheetResource.CreateSheet(sheet);

            if (newSheet.Columns.Count != 2)
            {
                Assert.Fail("Issue creating a sheet");
            }
        }