=begin comment

Web API Swagger specification

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: 1.0

Generated by: https://github.com/swagger-api/swagger-codegen.git

=end comment

=cut

#
# NOTE: This class is auto generated by Swagger Codegen
# Please update the test cases below to test the API endpoints.
# Ref: https://github.com/swagger-api/swagger-codegen
#
use Test::More tests => 1; #TODO update number of test cases
use Test::Exception;

use lib 'lib';
use strict;
use warnings;
use_ok('AsposeCellsCloud::Configuration');
use_ok('AsposeCellsCloud::ApiClient');
use_ok('AsposeCellsCloud::CellsApi');
use_ok('AsposeCellsCloud::CellsApi');
use_ok('AsposeCellsCloud::Object::CopyOptions');


require 't\CellsTestBase.pl';
my $new_client = get_client();
my $result =undef;
my $BOOK1 = 'Book1.xlsx';
my $MYDOC = 'myDocument.xlsx';
my $PVTESTFILE = 'TestCase.xlsx';
my $TEMPFOLDER = 'Temp';
my $SHEET1 = 'Sheet1';
my $SHEET2 = 'Sheet2';
my $SHEET3 = 'Sheet3';
my $SHEET4 = 'Sheet4';
my $SHEET5 = 'Sheet5';
my $SHEET6 = 'Sheet6';
my $SHEET7 = 'Sheet7';
my $SHEET8 = 'Sheet8';
my $CELLNAME = 'A1';
my $RANGE = 'A1:C10';
my $CELLAREA = 'A1:C10';

use_ok('AsposeCellsCloud::CellsApi');

my $api = AsposeCellsCloud::CellsApi->new($new_client);
isa_ok($api, 'AsposeCellsCloud::CellsApi');

#
# cells_worksheets_post_copy_worksheet test
#
{

    my $name = "NewCopy.xlsx"; # replace NULL with a proper value
    my $sheet_name = $SHEET5; # replace NULL with a proper value
    my $source_sheet = $SHEET6; # replace NULL with a proper value
    my $options = AsposeCellsCloud::Object::CopyOptions->new(ColumnCharacterWidth =>'true'); # replace NULL with a proper value
    my $source_workbook = $BOOK1; # replace NULL with a proper value
    my $source_folder = $TEMPFOLDER; # replace NULL with a proper value
    my $folder = $TEMPFOLDER; # replace NULL with a proper value
    ready_file('api'=> $api, 'file'=>$BOOK1 ,'folder' =>$folder) ; 
    ready_file('api'=> $api, 'file'=>$name ,'folder' =>$folder) ;  
    print(  'upload ');
    $result = $api->cells_worksheets_post_copy_worksheet(name => $name,
         sheet_name => $sheet_name, 
         source_sheet => $source_sheet, 
         options => $options, 
         source_workbook => $source_workbook, 
         source_folder => $source_folder, folder => $folder);
    ok($result->status eq 'OK' ,'cells_worksheets_post_copy_worksheet OK');
}
1;
