/*  ===========================================================================
 *  Copyright © 2006-2007 Nokia Corporation.
 *  This material, including documentation and any related
 *  computer programs, is protected by copyright controlled by
 *  Nokia Corporation. All rights are reserved. Copying,
 *  including reproducing, storing, adapting or translating, any
 *  or all of this material requires the prior written consent of
 *  Nokia Corporation. This material also contains confidential
 *  information which may not be disclosed to others without the
 *  prior written consent of Nokia Corporation.
 * ============================================================================
 */
//WrongCommand
[Test]
title Wrong_Command
create tprovidertest_vpbk foobar
//foobar CheckInputArgumentType service InterfcaeName Command Synchronousbit Callback varname vartype value Finish expectedvalue
foobar CheckInputArgumentType Service.Contact IDataSource Remove 0 NULL  Type UnicodeString Contact Finish 1004
delete foobar
[Endtest]


[Test]
title GetContacts_Idtype
create tprovidertest_vpbk foobar
//foobar CheckInputArgumentType service InterfcaeName Command Synchronousbit Callback varname vartype value Finish expectedvalue
foobar CheckInputArgumentType Service.Contact IDataSource GetList 0 NULL  Type String Contact  Finish 1002
delete foobar
[Endtest]


[Test]
title GetContacts_wrongSearchVal
create tprovidertest_vpbk foobar
//foobar CheckInputArgumentType service InterfcaeName Command Synchronousbit Callback varname vartype value Finish expectedvalue
foobar CheckInputArgumentType Service.Contact IDataSource GetList 0 NULL  Type UnicodeString Contact Filter Map SearchVal UnicodeString sapi END Finish 1012
delete foobar
[Endtest]


[Test]
title Get_list_Leaving_Callback
create tprovidertest_vpbk foobar
//foobar CheckInputArgumentType service InterfcaeName Command Synchronousbit Callback varname vartype value Finish expectedvalue
foobar CheckInputArgumentType Service.Contact IDataSource GetList 1 LeavingCallback   Type UnicodeString Contact Finish 0
delete foobar
[Endtest]


[Test]
title Get_list_Positionbased
create tprovidertest_vpbk foobar
//foobar CheckInputArgumentType service InterfcaeName Command Synchronousbit Callback varname vartype value Finish expectedvalue
foobar CheckInputArgumentType Service.Contact IDataSource GetList 0 NULL  Finish 1003
delete foobar
[Endtest]

[Test]
title Get_list_Posnbased
create tprovidertest_vpbk foobar
//foobar CheckInputArgumentType service InterfcaeName Command Synchronousbit Callback varname vartype value Finish expectedvalue
foobar CheckInputArgumentType Service.Contact IDataSource GetList 0 NULL Filter Map SearchVal UnicodeString A  Type UnicodeString Contact  END Finish 1003
delete foobar
[Endtest]

[Test]
title GetContacts_SyncBit
create tprovidertest_vpbk foobar
//foobar CheckInputArgumentType service InterfcaeName Command Synchronousbit Callback varname vartype value Finish expectedvalue
foobar CheckInputArgumentType Service.Contact IDataSource GetList 1 NULL  Type UnicodeString Contact  Finish 1002
delete foobar
[Endtest]

[Test]
title GetContacts_SyncBit
create tprovidertest_vpbk foobar
//foobar CheckInputArgumentType service InterfcaeName Command Synchronousbit Callback varname vartype value Finish expectedvalue
foobar CheckInputArgumentType Service.Contact IDataSource GetList 0 Callback  Type UnicodeString Contact  Finish 1002
delete foobar
[Endtest]

[Test]
title GetContacts_Rangetype
create tprovidertest_vpbk foobar
//foobar CheckInputArgumentType service InterfcaeName Command Synchronousbit Callback varname vartype value Finish expectedvalue
foobar CheckInputArgumentType Service.Contact IDataSource GetList 0 NULL  Type UnicodeString Conts  Finish 1002
delete foobar
[Endtest]

[Test]
title Get_list_Posnbased
create tprovidertest_vpbk foobar
//foobar CheckInputArgumentType service InterfcaeName Command Synchronousbit Callback varname vartype value Finish expectedvalue
foobar CheckInputArgumentType Service.Contact IDataSource GetList 0 NULL Filter Map SearchVal UnicodeString A  END Finish 1003
delete foobar
[Endtest]

// Ignore positive test case fop it contacts require in data base
[Test]
title Get_list_keyvalue
create tprovidertest_vpbk foobar
//foobar CheckInputArgumentType service InterfcaeName Command Synchronousbit Callback varname vartype value Finish expectedvalue
foobar CheckInputArgumentType Service.Contact IDataSource GetList 0 NULL Filter Map SearchVal UnicodeString dgfdhfhgfkh END Type UnicodeString Contact  Finish 1012
delete foobar
[Endtest]

[Test]
title AsyncGetContacts_Idtype
create tprovidertest_vpbk foobar
//foobar CheckInputArgumentType service InterfcaeName Command Synchronousbit Callback varname vartype value Finish expectedvalue
foobar CheckInputArgumentType Service.Contact IDataSource GetList 1 callback  Type String Contact  Finish 1002
delete foobar
[Endtest]


[Test]
title AsyncGet_list_Leaving_Callback
create tprovidertest_vpbk foobar
//foobar CheckInputArgumentType service InterfcaeName Command Synchronousbit Callback varname vartype value Finish expectedvalue
foobar CheckInputArgumentType Service.Contact IDataSource GetList 1 LeavingCallback   Type UnicodeString Contact Finish 0
delete foobar
[Endtest]

[Test]
title AsyncGet_list_Positionbased
create tprovidertest_vpbk foobar
//foobar CheckInputArgumentType service InterfcaeName Command Synchronousbit Callback varname vartype value Finish expectedvalue
foobar CheckInputArgumentType Service.Contact IDataSource GetList 1 callback  Finish 1003
delete foobar
[Endtest]

[Test]
title AsyncGet_list_Posnbased
create tprovidertest_vpbk foobar
//foobar CheckInputArgumentType service InterfcaeName Command Synchronousbit Callback varname vartype value Finish expectedvalue
foobar CheckInputArgumentType Service.Contact IDataSource GetList 1 callback Filter Map SearchVal UnicodeString A  Type UnicodeString Contact  END Finish 1003
delete foobar
[Endtest]

[Test]
title AsyncGetContacts_Rangetype
create tprovidertest_vpbk foobar
//foobar CheckInputArgumentType service InterfcaeName Command Synchronousbit Callback varname vartype value Finish expectedvalue
foobar CheckInputArgumentType Service.Contact IDataSource GetList 1 callback  Type UnicodeString Conts  Finish 1002
delete foobar
[Endtest]

[Test]
title AsyncGet_list_Posnbased
create tprovidertest_vpbk foobar
//foobar CheckInputArgumentType service InterfcaeName Command Synchronousbit Callback varname vartype value Finish expectedvalue
foobar CheckInputArgumentType Service.Contact IDataSource GetList 1 callback Filter Map SearchVal UnicodeString A  END Finish 1003
delete foobar
[Endtest]

// Can be ignored as positive test case , for it contcts require in database
[Test]
title AsyncGet_list_keyvalue
create tprovidertest_vpbk foobar
//foobar CheckInputArgumentType service InterfcaeName Command Synchronousbit Callback varname vartype value Finish expectedvalue
foobar CheckInputArgumentType Service.Contact IDataSource GetList 1 callback Filter Map SearchVal UnicodeString dgfdhfhgfkh END Type UnicodeString Contact  Finish 1012
delete foobar
[Endtest]


//Add

[Test]
title Add_Mandatory_Param_test
create tprovidertest_vpbk foobar
//foobar CheckInputArgumentType service InterfcaeName Command Synchronousbit Callback varname vartype value Finish expectedvalue
foobar CheckInputArgumentType Service.Contact IDataSource Add 0 NULL  Type UnicodeString Contact Finish 1003
delete foobar
[Endtest]


[Test]
title Add_WrongType_dataType
create tprovidertest_vpbk foobar
//foobar CheckInputArgumentType service InterfcaeName Command Synchronousbit Callback varname vartype value Finish expectedvalue
foobar CheckInputArgumentType Service.Contact IDataSource Add 0 NULL  Type String Contact Data Map FirstName Map Label UnicodeString Name Value UnicodeString Ravi End End Finish 1002
delete foobar
[Endtest]

[Test]
title Add_Wrong_ContentType
create tprovidertest_vpbk foobar
//foobar CheckInputArgumentType service InterfcaeName Command Synchronousbit Callback varname vartype value Finish expectedvalue
foobar CheckInputArgumentType Service.Contact IDataSource Add 0 NULL  Type UnicodeString Ram Data Map FirstName Map Label UnicodeString Name Value UnicodeString Ravi End End Finish 1002
delete foobar
[Endtest]

[Test]
title Add_Wrong_RangeType
create tprovidertest_vpbk foobar
//foobar CheckInputArgumentType service InterfcaeName Command Synchronousbit Callback varname vartype value Finish expectedvalue
foobar CheckInputArgumentType Service.Contact IDataSource Add 0 NULL  Type UnicodeString Ram Data Map FirstName Map Label UnicodeString Name Value UnicodeString Ravi End End Finish 1002
delete foobar
[Endtest]


[Test]
title Add_Wrong_TypeOfDatatype
create tprovidertest_vpbk foobar
//foobar CheckInputArgumentType service InterfcaeName Command Synchronousbit Callback varname vartype value Finish expectedvalue
foobar CheckInputArgumentType Service.Contact IDataSource Add 0 NULL Type UnicodeString Contact Data List Unicodestring Name End Finish 1002
delete foobar
[Endtest]

[Test]
title Add_Wrong_List
create tprovidertest_vpbk foobar
//foobar CheckInputArgumentType service InterfcaeName Command Synchronousbit Callback varname vartype value Finish expectedvalue
foobar CheckInputArgumentType Service.Contact IDataSource Add 0 NULL  Type UnicodeString Contact Data Map FirstName List UnicodeString Ravi End End Finish 1002
delete foobar
[Endtest]

[Test]
title Add_Wrong_ValueType
create tprovidertest_vpbk foobar
//foobar CheckInputArgumentType service InterfcaeName Command Synchronousbit Callback varname vartype value Finish expectedvalue
foobar CheckInputArgumentType Service.Contact IDataSource Add 0 NULL  Type UnicodeString Contact Data Map FirstName Map Label unicodeString Name Value String Ravi End End Finish 1002
delete foobar
[Endtest]

[Test]
title Add_Wrong_Type_NextMap
create tprovidertest_vpbk foobar
//foobar CheckInputArgumentType service InterfcaeName Command Synchronousbit Callback varname vartype value Finish expectedvalue
foobar CheckInputArgumentType Service.Contact IDataSource Add 0 NULL  Type UnicodeString Contact Data Map EmailHome Map Label UnicodeString MailId Value UnicodeString name@gmail.com Next List  UnicodeString hm@yahoo.com End End End Finish 1002
delete foobar
[Endtest]

[Test]
title Add_Wrong_Type_FieldKey
create tprovidertest_vpbk foobar
//foobar CheckInputArgumentType service InterfcaeName Command Synchronousbit Callback varname vartype value Finish expectedvalue
foobar CheckInputArgumentType Service.Contact IDataSource Add 0 NULL  Type UnicodeString Contact Data Map HomeEmail Map Label UnicodeString MailId Value UnicodeString name@gmail.com End End Finish 1002
delete foobar
[Endtest]

[Test]
title Add_Wrong_PositionBased
create tprovidertest_vpbk foobar
//foobar CheckInputArgumentType service InterfcaeName Command Synchronousbit Callback varname vartype value Finish expectedvalue
foobar CheckInputArgumentType Service.Contact IDataSource Add 0 NULL  NULL Map EmailHome Map Label UnicodeString MailId Value UnicodeString name@gmail.com End End NULL UnicodeString Contact Finish 1002
delete foobar
[Endtest]

[Test]
title Add_Wrong_KeyVal_Order
create tprovidertest_vpbk foobar
//foobar CheckInputArgumentType service InterfcaeName Command Synchronousbit Callback varname vartype value Finish expectedvalue
foobar CheckInputArgumentType Service.Contact IDataSource Add 0 NULL  Data Map EmailHome Map Label UnicodeString Email Value UnicodeString name@gmail.com End End Type UnicodeString Contact Finish 0
delete foobar
[Endtest]

[Test]
title Add_MissingArg
create tprovidertest_vpbk foobar
//foobar CheckInputArgumentType service InterfcaeName Command Synchronousbit Callback varname vartype value Finish expectedvalue
foobar CheckInputArgumentType Service.Contact IDataSource Add 0 NULL  Data Map EmailHome Map Label UnicodeString Email Value UnicodeString name@gmail.com End End Finish 1003
delete foobar
[Endtest]

[Test]
title Add_Wrong_KeyVal_Order
create tprovidertest_vpbk foobar
//foobar CheckInputArgumentType service InterfcaeName Command Synchronousbit Callback varname vartype value Finish expectedvalue
foobar CheckInputArgumentType Service.Contact IDataSource Add 0 NULL  Data Map EmailHome Map Label UnicodeString Email Value UnicodeString name@gmail.com End End Type UnicodeString Contact Finish 0
delete foobar
[Endtest]


[Test]
title Add_Wrong_GrpLabel_Type
create tprovidertest_vpbk foobar
//foobar CheckInputArgumentType service InterfcaeName Command Synchronousbit Callback varname vartype value Finish expectedvalue
foobar CheckInputArgumentType Service.Contact IDataSource Add 0 NULL  Data Map GrpLabel UnicodeString Group1 End Type UnicodeString Group Finish 1002
delete foobar
[Endtest]

[Test]
title Add_Wrong_contentType
create tprovidertest_vpbk foobar
//foobar CheckInputArgumentType service InterfcaeName Command Synchronousbit Callback varname vartype value Finish expectedvalue
foobar CheckInputArgumentType Service.Contact IDataSource Add 0 NULL  Data Map GrpLabel UnicodeString Group1 End Type UnicodeString Grop Finish 1002
delete foobar
[Endtest]


[Test]
title Add_Wrong_dataType
create tprovidertest_vpbk foobar
//foobar CheckInputArgumentType service InterfcaeName Command Synchronousbit Callback varname vartype value Finish expectedvalue
foobar CheckInputArgumentType Service.Contact IDataSource Add 0 NULL  Data Map GrpLabel String Group1 End Type String Grop Finish 1002
delete foobar
[Endtest]

//Add Async


[Test]
title AddAsync_Mandatory_Param_test
create tprovidertest_vpbk foobar
//foobar CheckInputArgumentType service InterfcaeName Command Synchronousbit Callback varname vartype value Finish expectedvalue
foobar CheckInputArgumentType Service.Contact IDataSource Add 1 Callback  Type String Contact Finish 1003
delete foobar
[Endtest]


[Test]
title AddAsync_WrongType_dataType
create tprovidertest_vpbk foobar
//foobar CheckInputArgumentType service InterfcaeName Command Synchronousbit Callback varname vartype value Finish expectedvalue
foobar CheckInputArgumentType Service.Contact IDataSource Add 1 Callback  Type String Contact Data Map FirstName Map Label UnicodeString Name Value UnicodeString Ravi End End Finish 1002
delete foobar
[Endtest]

[Test]
title AddAsync_Wrong_ContentType
create tprovidertest_vpbk foobar
//foobar CheckInputArgumentType service InterfcaeName Command Synchronousbit Callback varname vartype value Finish expectedvalue
foobar CheckInputArgumentType Service.Contact IDataSource Add 1 Callback  Type UnicodeString Ram Data Map FirstName Map Label UnicodeString Name Value UnicodeString Ravi End End Finish 1002
delete foobar
[Endtest]


[Test]
title AddAsync_Wrong_RangeType
create tprovidertest_vpbk foobar
//foobar CheckInputArgumentType service InterfcaeName Command Synchronousbit Callback varname vartype value Finish expectedvalue
foobar CheckInputArgumentType Service.Contact IDataSource Add 1 Callback  Type UnicodeString Ram Data Map FirstName Map Label UnicodeString Name Value UnicodeString Ravi End End Finish 1002
delete foobar
[Endtest]


[Test]
title AddAsync_Wrong_TypeOfDatatype
create tprovidertest_vpbk foobar
//foobar CheckInputArgumentType service InterfcaeName Command Synchronousbit Callback varname vartype value Finish expectedvalue
foobar CheckInputArgumentType Service.Contact IDataSource Add 1 Callback Type UnicodeString Contact Data List Unicodestring Name End Finish 1002
delete foobar
[Endtest]


[Test]
title AddAsync_Wrong_ValueType
create tprovidertest_vpbk foobar
//foobar CheckInputArgumentType service InterfcaeName Command Synchronousbit Callback varname vartype value Finish expectedvalue
foobar CheckInputArgumentType Service.Contact IDataSource Add 1 Callback  Type UnicodeString Contact Data Map FirstName Map Label unicodeString Name Value String Ravi End End Finish 1002
delete foobar
[Endtest]

[Test]
title AddAsync_Wrong_Type_NextMap
create tprovidertest_vpbk foobar
//foobar CheckInputArgumentType service InterfcaeName Command Synchronousbit Callback varname vartype value Finish expectedvalue
foobar CheckInputArgumentType Service.Contact IDataSource Add 1 Callback  Type UnicodeString Contact Data Map EmailHome Map Label UnicodeString MailId Value UnicodeString name@gmail.com Next List  UnicodeString hm@yahoo.com End End End Finish 1002
delete foobar
[Endtest]

[Test]
title AddAsync_Wrong_PositionBased
create tprovidertest_vpbk foobar
//foobar CheckInputArgumentType service InterfcaeName Command Synchronousbit Callback varname vartype value Finish expectedvalue
foobar CheckInputArgumentType Service.Contact IDataSource Add 1 Callback  NULL Map EmailHome Map Label UnicodeString MailId Value UnicodeString name@gmail.com End End NULL UnicodeString Contact Finish 1002
delete foobar
[Endtest]

[Test]
title AddAsync_Wrong_KeyVal_Order
create tprovidertest_vpbk foobar
//foobar CheckInputArgumentType service InterfcaeName Command Synchronousbit Callback varname vartype value Finish expectedvalue
foobar CheckInputArgumentType Service.Contact IDataSource Add 1 Callback  Data Map EmailHome Map Label UnicodeString Email Value UnicodeString name@gmail.com End End Type UnicodeString Contact Finish 0
delete foobar
[Endtest]

[Test]
title AddAsync_MissingArg
create tprovidertest_vpbk foobar
//foobar CheckInputArgumentType service InterfcaeName Command Synchronousbit Callback varname vartype value Finish expectedvalue
foobar CheckInputArgumentType Service.Contact IDataSource Add 1 Callback  Data Map EmailHome Map Label UnicodeString Email Value UnicodeString name@gmail.com End End Finish 1003
delete foobar
[Endtest]


// Delete

[Test]
title Delete_Wrong_dataTypeOfContent
create tprovidertest_vpbk foobar
//foobar CheckInputArgumentType service InterfcaeName Command Synchronousbit Callback varname vartype value Finish expectedvalue
foobar CheckInputArgumentType Service.Contact IDataSource Delete 0 NULL  Type String Contact Data Map IdList List UnicodeString 123 End End Finish 1002
delete foobar
[Endtest]

[Test]
title Delete_Data_Missing
create tprovidertest_vpbk foobar
//foobar CheckInputArgumentType service InterfcaeName Command Synchronousbit Callback varname vartype value Finish expectedvalue
foobar CheckInputArgumentType Service.Contact IDataSource Delete 0 NULL  Type UnicodeString Contact Finish 1003
delete foobar
[Endtest]

[Test]
title Delete_PoBased_Test
create tprovidertest_vpbk foobar
//foobar CheckInputArgumentType service InterfcaeName Command Synchronousbit Callback varname vartype value Finish expectedvalue
foobar CheckInputArgumentType Service.Contact IDataSource Delete 0 NULL  NULL Map IdList List UnicodeString 123 End End NULL UnicodeString Contact Finish 1002
delete foobar
[Endtest]

[Test]
title Delete_Kayvalue_Test
create tprovidertest_vpbk foobar
//foobar CheckInputArgumentType service InterfcaeName Command Synchronousbit Callback varname vartype value Finish expectedvalue
foobar CheckInputArgumentType Service.Contact IDataSource Delete 0 NULL  Data Map IdList List End End Type UnicodeString Contact Finish 1002
delete foobar
[Endtest]

// DeleteAsync

[Test]
title DeleteAsync_Wrong_dataTypeOfContent
create tprovidertest_vpbk foobar
//foobar CheckInputArgumentType service InterfcaeName Command Synchronousbit Callback varname vartype value Finish expectedvalue
foobar CheckInputArgumentType Service.Contact IDataSource Delete 1 callback  Type String Contact Data Map IdList List UnicodeString 123 UnicodeString 32 End End Finish 1002
delete foobar
[Endtest]


[Test]
title DeleteAsync_Data_Missing
create tprovidertest_vpbk foobar
//foobar CheckInputArgumentType service InterfcaeName Command Synchronousbit Callback varname vartype value Finish expectedvalue
foobar CheckInputArgumentType Service.Contact IDataSource Delete 1 callback  Type UnicodeString Contact Finish 1003
delete foobar
[Endtest]


[Test]
title DeleteAsync_PoBased_Test
create tprovidertest_vpbk foobar
//foobar CheckInputArgumentType service InterfcaeName Command Synchronousbit Callback varname vartype value Finish expectedvalue
foobar CheckInputArgumentType Service.Contact IDataSource Delete 1 callback  NULL Map IdList List UnicodeString 123 End End NULL UnicodeString Contact Finish 1002
delete foobar
[Endtest]

[Test]
title DeleteAsync_Kayvalue_Test
create tprovidertest_vpbk foobar
//foobar CheckInputArgumentType service InterfcaeName Command Synchronousbit Callback varname vartype value Finish expectedvalue
foobar CheckInputArgumentType Service.Contact IDataSource Delete 1 callback  Data Map IdList List  End End Type UnicodeString Contact Finish 1002
delete foobar
[Endtest]


// Import

[Test]
title Import_WrongContent_Type
create tprovidertest_vpbk foobar
//foobar CheckInputArgumentType service InterfcaeName Command Synchronousbit Callback varname vartype value Finish expectedvalue
foobar CheckInputArgumentType Service.Contact IDataSource Import 0 NULL  Type String Contact Data Map SourceFile UnicodeString "C:\\data\\File.vcf" End Finish 1002
delete foobar
[Endtest]


[Test]
title Import_Wrong_SourceFile_dataType
create tprovidertest_vpbk foobar
//foobar CheckInputArgumentType service InterfcaeName Command Synchronousbit Callback varname vartype value Finish expectedvalue
foobar CheckInputArgumentType Service.Contact IDataSource Import 0 NULL  Type UnicodeString Contact Data Map SourceFile String "C:\\data\\File.vcf" End Finish 1002
delete foobar
[Endtest]

[Test]
title Import_No_SourceFile
create tprovidertest_vpbk foobar
//foobar CheckInputArgumentType service InterfcaeName Command Synchronousbit Callback varname vartype value Finish expectedvalue
foobar CheckInputArgumentType Service.Contact IDataSource Import 0 NULL  Type UnicodeString Contact Finish 1003
delete foobar
[Endtest]


[Test]
title Import_Wrong_SourceFile_path
create tprovidertest_vpbk foobar
//foobar CheckInputArgumentType service InterfcaeName Command Synchronousbit Callback varname vartype value Finish expectedvalue
foobar CheckInputArgumentType Service.Contact IDataSource Import 0 NULL  Type UnicodeString Contact Data Map SourceFile UnicodeString "C:\\File.vcf" End Finish 1002
delete foobar
[Endtest]

// Import

[Test]
title Import_Less_Arguments
create tprovidertest_vpbk foobar
//foobar CheckInputArgumentType service InterfcaeName Command Synchronousbit Callback varname vartype value Finish expectedvalue
foobar CheckInputArgumentType Service.Contact IDataSource Import 0 NULL  Type UnicodeString Contact Finish 1003
delete foobar
[Endtest]

[Test]
title Import_PosBased_neg
create tprovidertest_vpbk foobar
//foobar CheckInputArgumentType service InterfcaeName Command Synchronousbit Callback varname vartype value Finish expectedvalue
foobar CheckInputArgumentType Service.Contact IDataSource Import 0 NULL  NULL Map SourceFile UnicodeString "C:\\data\\File.vcf" End NULL UnicodeString Content  Finish 1002
delete foobar
[Endtest]

// Import Async
[Test]
title ImportAsync_WrongContent_dataType
create tprovidertest_vpbk foobar
//foobar CheckInputArgumentType service InterfcaeName Command Synchronousbit Callback varname vartype value Finish expectedvalue
foobar CheckInputArgumentType Service.Contact IDataSource Import 1 callback  Type String Contact Data Map SourceFile UnicodeString "C:\\data\\File.vcf" End Finish 1002
delete foobar
[Endtest]


[Test]
title ImportAsync_Wrong_SourceFile_dataType
create tprovidertest_vpbk foobar
//foobar CheckInputArgumentType service InterfcaeName Command Synchronousbit Callback varname vartype value Finish expectedvalue
foobar CheckInputArgumentType Service.Contact IDataSource Import 1 callback  Type UnicodeString Contact Data Map SourceFile String "C:\\data\\File.vcf" End Finish 1002
delete foobar
[Endtest]

[Test]
title ImportAsync_No_SourceFile_Type
create tprovidertest_vpbk foobar
//foobar CheckInputArgumentType service InterfcaeName Command Synchronousbit Callback varname vartype value Finish expectedvalue
foobar CheckInputArgumentType Service.Contact IDataSource Import 1 callback  Type UnicodeString Contact Finish 1003
delete foobar
[Endtest]

[Test]
title Import_Wrong_content_Type
create tprovidertest_vpbk foobar
//foobar CheckInputArgumentType service InterfcaeName Command Synchronousbit Callback varname vartype value Finish expectedvalue
foobar CheckInputArgumentType Service.Contact IDataSource Import 1 callback  Type UnicodeString Content Data Map SourceFile String "C:\\data\\vccardExport.vcf" End Finish 1002
delete foobar
[Endtest]

[Test]
title ImportAsync_Wrong_SourceFile_path
create tprovidertest_vpbk foobar
//foobar CheckInputArgumentType service InterfcaeName Command Synchronousbit Callback varname vartype value Finish expectedvalue
foobar CheckInputArgumentType Service.Contact IDataSource Import 1 callback  Type UnicodeString Contact Data Map SourceFile UnicodeString "C:\\File.vcf" End Finish 1002
delete foobar
[Endtest]



// Import Async

[Test]
title Import_Less_Arguments
create tprovidertest_vpbk foobar
//foobar CheckInputArgumentType service InterfcaeName Command Synchronousbit Callback varname vartype value Finish expectedvalue
foobar CheckInputArgumentType Service.Contact IDataSource Import 1 callback  Type UnicodeString Contact Finish 1003
delete foobar
[Endtest]

[Test]
title Import_PosBased_neg
create tprovidertest_vpbk foobar
//foobar CheckInputArgumentType service InterfcaeName Command Synchronousbit Callback varname vartype value Finish expectedvalue
foobar CheckInputArgumentType Service.Contact IDataSource Import 1 callback  NULL Map SourceFile UnicodeString "C:\\data\\File.vcf" End NULL UnicodeString Contact  Finish 1002
delete foobar
[Endtest]


// ExportAsync

[Test]
title ExportAsync_WrongContent_Type
create tprovidertest_vpbk foobar
//foobar CheckInputArgumentType service InterfcaeName Command Synchronousbit Callback varname vartype value Finish expectedvalue
foobar CheckInputArgumentType Service.Contact IDataSource Export 1 callback  Type String Contact Data Map DestinationFile UnicodeString "C:\\data\\File.vcf" End Finish 1002
delete foobar
[Endtest]

[Test]
title ExportAsync_WrongData_Type
create tprovidertest_vpbk foobar
//foobar CheckInputArgumentType service InterfcaeName Command Synchronousbit Callback varname vartype value Finish expectedvalue
foobar CheckInputArgumentType Service.Contact IDataSource Export 1 callback  Type UnicodeString Contact Data Map DestinationFile String "C:\\data\\File.vcf" End Finish 1002
delete foobar
[Endtest]

[Test]
title ExportAsync_Less_Arguments
create tprovidertest_vpbk foobar
//foobar CheckInputArgumentType service InterfcaeName Command Synchronousbit Callback varname vartype value Finish expectedvalue
foobar CheckInputArgumentType Service.Contact IDataSource Export 1 callback  Type UnicodeString Contact Finish 1003
delete foobar
[Endtest]

[Test]
title ExportAsync_PosBased_neg
create tprovidertest_vpbk foobar
//foobar CheckInputArgumentType service InterfcaeName Command Synchronousbit Callback varname vartype value Finish expectedvalue
foobar CheckInputArgumentType Service.Contact IDataSource Export 1 callback  NULL Map DestinationFile UnicodeString "C:\\data\\File.vcf" End NULL UnicodeString Contact  Finish 1002
delete foobar
[Endtest]

// Export

[Test]
title Export_WrongContent_dataType
create tprovidertest_vpbk foobar
//foobar CheckInputArgumentType service InterfcaeName Command Synchronousbit Callback varname vartype value Finish expectedvalue
foobar CheckInputArgumentType Service.Contact IDataSource Export 0 NULL  Type String Contact Data Map DestinationFile UnicodeString "C:\\data\\File.vcf" End Finish 1002
delete foobar
[Endtest]

[Test]
title Export_WrongData_Type
create tprovidertest_vpbk foobar
//foobar CheckInputArgumentType service InterfcaeName Command Synchronousbit Callback varname vartype value Finish expectedvalue
foobar CheckInputArgumentType Service.Contact IDataSource Export 0 NULL  Type UnicodeString Contact Data Map DestinationFile String "C:\\data\\File.vcf" End Finish 1002
delete foobar
[Endtest]

[Test]
title Export_Less_Arguments
create tprovidertest_vpbk foobar
//foobar CheckInputArgumentType service InterfcaeName Command Synchronousbit Callback varname vartype value Finish expectedvalue
foobar CheckInputArgumentType Service.Contact IDataSource Export 0 NULL  Type UnicodeString Contact Finish 1003
delete foobar
[Endtest]

[Test]
title Export_PosBased_neg
create tprovidertest_vpbk foobar
//foobar CheckInputArgumentType service InterfcaeName Command Synchronousbit Callback varname vartype value Finish expectedvalue
foobar CheckInputArgumentType Service.Contact IDataSource Export 0 NULL  NULL Map DestinationFile UnicodeString "C:\\data\\File.vcf" End NULL UnicodeString Contact  Finish 1002
delete foobar
[Endtest]



// OrganiseAsync

[Test]
title OrganizeAsync_Less_Arguments
create tprovidertest_vpbk foobar
//foobar CheckInputArgumentType service InterfcaeName Command Synchronousbit Callback varname vartype value Finish expectedvalue
foobar CheckInputArgumentType Service.Contact IDataSource Organise 1 callback  Type String Group Data Map GroupId UnicodeString 123 IdList List UnicodeString 12 End End  Finish 1003
delete foobar
[Endtest]

[Test]
title OrganizeAsync_Wrong_Content_DataType
create tprovidertest_vpbk foobar
//foobar CheckInputArgumentType service InterfcaeName Command Synchronousbit Callback varname vartype value Finish expectedvalue
foobar CheckInputArgumentType Service.Contact IDataSource Organise 1 callback OperationType UnicodeString Associate  Type String Group Data Map GroupId UnicodeString 123 IdList List UnicodeString 12 End End   Finish 1002
delete foobar
[Endtest]

[Test]
title OrganizeAsync_Wrong_OpreationType_Type
create tprovidertest_vpbk foobar
//foobar CheckInputArgumentType service InterfcaeName Command Synchronousbit Callback varname vartype value Finish expectedvalue
foobar CheckInputArgumentType Service.Contact IDataSource Organise 1 callback OperationType String Associate  Type UnicodeString Group Data Map GroupId  UnicodeString 123 IdList List UnicodeString 12 End End   Finish 1002
delete foobar
[Endtest]


[Test]
title OrganizeAsync_Wrong_Range_name
create tprovidertest_vpbk foobar
//foobar CheckInputArgumentType service InterfcaeName Command Synchronousbit Callback varname vartype value Finish expectedvalue
foobar CheckInputArgumentType Service.Contact IDataSource Organise 1 callback OperationType UnicodeString Associate  Type UnicodeString Groups Data Map GroupId UnicodeString 123 IdList List UnicodeString 12 End End   Finish 1003
delete foobar
[Endtest]

[Test]
title OrganizeAsync_Wrong_operationtype_name
create tprovidertest_vpbk foobar
//foobar CheckInputArgumentType service InterfcaeName Command Synchronousbit Callback varname vartype value Finish expectedvalue
foobar CheckInputArgumentType Service.Contact IDataSource Organise 1 callback Operation UnicodeString Associate  Type UnicodeString Group Data Map GroupId UnicodeString 123 IdList List UnicodeString 12 End End   Finish 1003
delete foobar
[Endtest]

[Test]
title OrganizeAsync_Wrong_operation_name
create tprovidertest_vpbk foobar
//foobar CheckInputArgumentType service InterfcaeName Command Synchronousbit Callback varname vartype value Finish expectedvalue
foobar CheckInputArgumentType Service.Contact IDataSource Organise 1 callback OperationType UnicodeString Associatees  Type UnicodeString Group Data Map GroupId UnicodeString 123 IdList List UnicodeString 12 End End   Finish 1002
delete foobar
[Endtest]

[Test]
title OrganizeAsync_Wrong_Data_name
create tprovidertest_vpbk foobar
//foobar CheckInputArgumentType service InterfcaeName Command Synchronousbit Callback varname vartype value Finish expectedvalue
foobar CheckInputArgumentType Service.Contact IDataSource Organise 1 callback OperationType UnicodeString Associate  Type UnicodeString Group Dat Map GroupId UnicodeString 123 IdList List UnicodeString 12 End End   Finish 1003
delete foobar
[Endtest]

[Test]
title OrganizeAsync_Wrong_Datavalue_name
create tprovidertest_vpbk foobar
//foobar CheckInputArgumentType service InterfcaeName Command Synchronousbit Callback varname vartype value Finish expectedvalue
foobar CheckInputArgumentType Service.Contact IDataSource Organise 1 callback OperationType UnicodeString Associate  Type UnicodeString Group Data Map GroupIds UnicodeString 123 IdList List UnicodeString 12 End End   Finish 1003
delete foobar
[Endtest]

[Test]
title OrganizeAsync_Wrong_datavalue_name
create tprovidertest_vpbk foobar
//foobar CheckInputArgumentType service InterfcaeName Command Synchronousbit Callback varname vartype value Finish expectedvalue
foobar CheckInputArgumentType Service.Contact IDataSource Organise 1 callback OperationType UnicodeString Associate  Type UnicodeString Group Data Map GroupId UnicodeString 123 IdLists List UnicodeString 12 End End   Finish 1003
delete foobar
[Endtest]



// Organise

[Test]
title Organize_Less_Arguments
create tprovidertest_vpbk foobar
//foobar CheckInputArgumentType service InterfcaeName Command Synchronousbit Callback varname vartype value Finish expectedvalue
foobar CheckInputArgumentType Service.Contact IDataSource Organise 0 NULL  Type String Group Data Map GroupId UnicodeString 123 IdList List UnicodeString 12 End End  Finish 1003
delete foobar
[Endtest]

[Test]
title Organize_Wrong_Content_DataType
create tprovidertest_vpbk foobar
//foobar CheckInputArgumentType service InterfcaeName Command Synchronousbit Callback varname vartype value Finish expectedvalue
foobar CheckInputArgumentType Service.Contact IDataSource Organise 0 NULL OperationType UnicodeString Associate  Type String Group Data Map GroupId UnicodeString 123 IdList List UnicodeString 12 End End   Finish 1002
delete foobar
[Endtest]

[Test]
title Organize_Wrong_OpreationType_Type
create tprovidertest_vpbk foobar
//foobar CheckInputArgumentType service InterfcaeName Command Synchronousbit Callback varname vartype value Finish expectedvalue
foobar CheckInputArgumentType Service.Contact IDataSource Organise 0 NULL OperationType String Associate  Type UnicodeString Group Data Map GroupId  UnicodeString 123 IdList List UnicodeString 12 End End   Finish 1002
delete foobar
[Endtest]

[Test]
title Organize_Wrong_Range_name
create tprovidertest_vpbk foobar
//foobar CheckInputArgumentType service InterfcaeName Command Synchronousbit Callback varname vartype value Finish expectedvalue
foobar CheckInputArgumentType Service.Contact IDataSource Organise 0 NULL OperationType UnicodeString Associate  Type UnicodeString Groups Data Map GroupId UnicodeString 123 IdList List UnicodeString 12 End End   Finish 1003
delete foobar
[Endtest]

[Test]
title Organize_Wrong_operationtype_name
create tprovidertest_vpbk foobar
//foobar CheckInputArgumentType service InterfcaeName Command Synchronousbit Callback varname vartype value Finish expectedvalue
foobar CheckInputArgumentType Service.Contact IDataSource Organise 0 NULL Operation UnicodeString Associate  Type UnicodeString Group Data Map GroupId UnicodeString 123 IdList List UnicodeString 12 End End   Finish 1003
delete foobar
[Endtest]

[Test]
title Organize_Wrong_operation_name
create tprovidertest_vpbk foobar
//foobar CheckInputArgumentType service InterfcaeName Command Synchronousbit Callback varname vartype value Finish expectedvalue
foobar CheckInputArgumentType Service.Contact IDataSource Organise 0 NULL OperationType UnicodeString Associatees  Type UnicodeString Group Data Map GroupId UnicodeString 123 IdList List UnicodeString 12 End End   Finish 1002
delete foobar
[Endtest]

[Test]
title Organize_Wrong_Data_name
create tprovidertest_vpbk foobar
//foobar CheckInputArgumentType service InterfcaeName Command Synchronousbit Callback varname vartype value Finish expectedvalue
foobar CheckInputArgumentType Service.Contact IDataSource Organise 0 NULL OperationType UnicodeString Associate  Type UnicodeString Group Dat Map GroupId UnicodeString 123 IdList List UnicodeString 12 End End   Finish 1003
delete foobar
[Endtest]

[Test]
title Organize_Wrong_Datavalue_name
create tprovidertest_vpbk foobar
//foobar CheckInputArgumentType service InterfcaeName Command Synchronousbit Callback varname vartype value Finish expectedvalue
foobar CheckInputArgumentType Service.Contact IDataSource Organise 0 NULL OperationType UnicodeString Associate  Type UnicodeString Group Data Map GroupIds UnicodeString 123 IdList List UnicodeString 12 End End   Finish 1003
delete foobar
[Endtest]

[Test]
title Organize_Wrong_datavalue_name
create tprovidertest_vpbk foobar
//foobar CheckInputArgumentType service InterfcaeName Command Synchronousbit Callback varname vartype value Finish expectedvalue
foobar CheckInputArgumentType Service.Contact IDataSource Organise 0 NULL OperationType UnicodeString Associate  Type UnicodeString Group Data Map GroupId UnicodeString 123 IdLists List UnicodeString 12 End End   Finish 1003
delete foobar
[Endtest]


[Test]
title MultipleCommands
create tprovidertest_vpbk foobar
//foobar CheckInputArgumentType service InterfaceName Command Synchronousbit Callback varname vartype value Finish expectedvalue NextCmd InterfaceName Command.......expectedvalue Done
foobar CheckInputArgumentType Service.Contact IDataSource GetList 0 NULL Type UnicodeString Contact Finish 0 NextCmd Service.Contact IDataSource GetList 0 NULL Type UnicodeString Group Finish 0 Done
delete foobar
[Endtest]




