@@ -857,7 +857,7 @@ public void CanCreateAndDeleteTaggerTicketField(bool replaceNameSpaceWithUndersc
857857
858858 [ TestCase ( true , "test entryA" , "test entryA newTitle" , "test entryB" , "test entryC" , "test_entryA" , "test_entryA_newTitle" , "test_entryB" , "test_entryC" ) ]
859859 [ TestCase ( false , "test entryA" , "test entryA newTitle" , "test entryB" , "test entryC" , "test entryA" , "test entryA newTitle" , "test entryB" , "test entryC" ) ]
860- public void CanCreateUpdateOptionsAndDeleteTaggerTicketField ( bool replaceNameSpaceWithUnderscore , string name1 , string name1_Update , string name2 , string name3 ,
860+ public void CanCreateUpdateOptionsAndDeleteTaggerTicketField ( bool replaceNameSpaceWithUnderscore , string name1 , string name1_Update , string name2 , string name3 ,
861861 string expectedName1 , string expectedName1_Update , string expectedName2 , string expectedName3 )
862862 {
863863 // https://support.zendesk.com/hc/en-us/articles/204579973--BREAKING-Update-ticket-field-dropdown-fields-by-value-instead-of-id-
@@ -1336,25 +1336,14 @@ public async Task CanCreateUpdateOptionsAndDeleteTaggerTicketFieldAsync()
13361336 [ Test ]
13371337 public async Task CanGetBrandId ( )
13381338 {
1339- var brand = new Brand ( )
1340- {
1341- Name = "Test Brand" ,
1342- Active = true ,
1343- Subdomain = $ "test-{ Guid . NewGuid ( ) } "
1344- } ;
1345-
1346- var respBrand = api . Brands . CreateBrand ( brand ) ;
1347-
1348- brand = respBrand . Brand ;
1349-
1339+ var respBrand = api . Brands . GetBrands ( ) ;
1340+ var brand = respBrand . Brands [ 0 ] ;
13501341 var ticket = new Ticket { Comment = new Comment { Body = "This is a Brand id Test" , Public = false } , BrandId = brand . Id } ;
13511342 var respTicket = await api . Tickets . CreateTicketAsync ( ticket ) ;
1352- var respTickets = await api . Tickets . GetMultipleTicketsAsync ( new List < long > { respTicket . Ticket . Id . Value } ) ;
13531343
1354- Assert . That ( respTickets . Tickets [ 0 ] . BrandId , Is . EqualTo ( brand . Id ) ) ;
1344+ Assert . That ( respTicket . Ticket . BrandId , Is . EqualTo ( brand . Id ) ) ;
13551345
13561346 // clean up
1357- Assert . True ( api . Brands . DeleteBrand ( brand . Id . Value ) ) ;
13581347 Assert . True ( await api . Tickets . DeleteAsync ( respTicket . Ticket . Id . Value ) ) ;
13591348 }
13601349
0 commit comments