Deactivate() public method

Deactivates specified collection. The collection_id/collection_key parameter means that one can use either one of them - collection_id or collection_key.
public Deactivate ( string projectId, string collectionId = null, string collectionKey = null ) : Task
projectId string Project id.
collectionId string Collection id defining collection to be deactivated.
collectionKey string Collection key defining collection to be deactivated.
return Task
 public async Task Deactivate_WithNullProjectId_ThrowsException(CollectionSyncanoClient client)
 {
     try
     {
         //when
         await client.Deactivate(null, TestData.CollectionId);
         throw new Exception("Deactivate should throw an exception");
     }
     catch (Exception e)
     {
         //then
         e.ShouldBeType<ArgumentNullException>();
     }
 }
 public async Task Deactivate_WithInvalidProjectId_ThrowsException(CollectionSyncanoClient client)
 {
     try
     {
         //when
         await client.Deactivate("abcde", TestData.CollectionId);
         throw new Exception("Deactivate should throw an exception");
     }
     catch (Exception e)
     {
         //then
         e.ShouldBeType<SyncanoException>();
     }
 }
        public async Task Deactivate_ByCollectionKey(CollectionSyncanoClient client)
        {
            //given
            string collectionName = "NewCollection test " + DateTime.Now.ToLongTimeString() + " " +
                                    DateTime.Now.ToShortDateString();
            string collectionKey = "qwert";

            var collection =
                await client.New(TestData.ProjectId, collectionName, collectionKey);
            await client.Activate(TestData.ProjectId, collection.Id, true);

            //when
            var result = await client.Deactivate(TestData.ProjectId, collectionKey: collection.Key);

            //then
            result.ShouldBeTrue();

            //cleanup
            await client.Delete(TestData.ProjectId, collection.Id);
        }