@@ -41,7 +41,7 @@ public async Task GivenPolicyApi_WhenPerformingAllOperations_ThenAllEndpointsAnd
4141 #region Create Policy - POST /api/v1/policies
4242
4343 // Test CreatePolicyAsync()
44- var policy = new CreateOrUpdatePolicy ( )
44+ var policy = new Policy ( )
4545 {
4646 Name = $ "SDK-Test-Policy-{ guid } ". Substring ( 0 , 50 ) ,
4747 Type = PolicyType . OKTASIGNON ,
@@ -123,7 +123,7 @@ public async Task GivenPolicyApi_WhenPerformingAllOperations_ThenAllEndpointsAnd
123123 #region Replace Policy - PUT /api/v1/policies/{policyId}
124124
125125 // Test ReplacePolicyAsync()
126- var updatedPolicyData = new CreateOrUpdatePolicy ( )
126+ var updatedPolicyData = new Policy ( )
127127 {
128128 Name = $ "SDK-Test-Policy-Updated-{ guid } ". Substring ( 0 , 50 ) ,
129129 Description = "Updated description for comprehensive test" ,
@@ -416,7 +416,7 @@ public async Task GivenPolicyApi_WhenPerformingAllOperations_ThenAllEndpointsAnd
416416
417417 #region Test Password Policy
418418
419- var passwordPolicy = new CreateOrUpdatePolicy ( )
419+ var passwordPolicy = new Policy ( )
420420 {
421421 Name = $ "SDK-Test-PasswordPolicy-{ guid } ". Substring ( 0 , 50 ) ,
422422 Type = PolicyType . PASSWORD ,
@@ -435,7 +435,7 @@ public async Task GivenPolicyApi_WhenPerformingAllOperations_ThenAllEndpointsAnd
435435
436436 #region Test Profile Enrollment Policy
437437
438- var profilePolicy = new CreateOrUpdatePolicy ( )
438+ var profilePolicy = new Policy ( )
439439 {
440440 Name = $ "SDK-Test-ProfilePolicy-{ guid } ". Substring ( 0 , 50 ) ,
441441 Type = PolicyType . PROFILEENROLLMENT ,
@@ -756,7 +756,7 @@ public async Task GivenQueryParameters_WhenListingPolicies_ThenFilteringWorksCor
756756 try
757757 {
758758 // Create a test policy with a unique name for searching
759- var policy = new CreateOrUpdatePolicy ( )
759+ var policy = new Policy ( )
760760 {
761761 Name = $ "SDK-QueryTest-{ guid } ". Substring ( 0 , 50 ) ,
762762 Type = PolicyType . OKTASIGNON ,
@@ -839,7 +839,7 @@ public async Task GivenPasswordPolicyWithRules_WhenManagingPolicy_ThenAllScenari
839839 try
840840 {
841841 // Create password policy
842- var policy = new CreateOrUpdatePolicy ( )
842+ var policy = new Policy ( )
843843 {
844844 Name = $ "SDK-PasswordPolicy-{ guid } ". Substring ( 0 , 50 ) ,
845845 Type = PolicyType . PASSWORD ,
@@ -1006,7 +1006,7 @@ public async Task GivenPolicyRules_WhenManaging_ThenPriorityOrderIsMaintained()
10061006 try
10071007 {
10081008 // Create a test policy
1009- var policy = new CreateOrUpdatePolicy ( )
1009+ var policy = new Policy ( )
10101010 {
10111011 Name = $ "SDK-PriorityTest-{ guid } ". Substring ( 0 , 50 ) ,
10121012 Type = PolicyType . OKTASIGNON ,
@@ -1120,7 +1120,7 @@ public async Task GivenNetworkConditions_WhenConfiguringPolicyRule_ThenRuleIsCon
11201120 try
11211121 {
11221122 // Create test policy
1123- var policy = new CreateOrUpdatePolicy ( )
1123+ var policy = new Policy ( )
11241124 {
11251125 Name = $ "SDK-NetworkTest-{ guid } ". Substring ( 0 , 50 ) ,
11261126 Type = PolicyType . OKTASIGNON ,
@@ -1205,7 +1205,7 @@ public async Task GivenSessionSettings_WhenConfiguringSignOnPolicyRule_ThenRuleI
12051205 try
12061206 {
12071207 // Create test policy
1208- var policy = new CreateOrUpdatePolicy ( )
1208+ var policy = new Policy ( )
12091209 {
12101210 Name = $ "SDK-SessionTest-{ guid } ". Substring ( 0 , 50 ) ,
12111211 Type = PolicyType . OKTASIGNON ,
@@ -1351,7 +1351,7 @@ await _policyApi.DeletePolicyRuleAsync(invalidPolicyId, invalidRuleId)
13511351 try
13521352 {
13531353 // Create a valid policy for testing invalid operations
1354- var policy = new CreateOrUpdatePolicy ( )
1354+ var policy = new Policy ( )
13551355 {
13561356 Name = $ "SDK-ErrorTest-{ guid } ". Substring ( 0 , 50 ) ,
13571357 Type = PolicyType . OKTASIGNON ,
@@ -1399,7 +1399,7 @@ public async Task GivenBoundaryNameLength_WhenCreatingPolicy_ThenPolicyIsHandled
13991399 {
14001400 // Test 49 characters (should work)
14011401 var name49 = new string ( 'A' , 49 ) ;
1402- var policy1 = new CreateOrUpdatePolicy ( )
1402+ var policy1 = new Policy ( )
14031403 {
14041404 Name = name49 ,
14051405 Type = PolicyType . OKTASIGNON ,
@@ -1414,7 +1414,7 @@ public async Task GivenBoundaryNameLength_WhenCreatingPolicy_ThenPolicyIsHandled
14141414
14151415 // Test exactly 50 characters (should work)
14161416 var name50 = new string ( 'B' , 50 ) ;
1417- var policy2 = new CreateOrUpdatePolicy ( )
1417+ var policy2 = new Policy ( )
14181418 {
14191419 Name = name50 ,
14201420 Type = PolicyType . OKTASIGNON ,
@@ -1429,7 +1429,7 @@ public async Task GivenBoundaryNameLength_WhenCreatingPolicy_ThenPolicyIsHandled
14291429
14301430 // Test 51 characters (API doesn't enforce a strict 50-char limit, it accepts 51+)
14311431 var name51 = new string ( 'C' , 51 ) ;
1432- var policy3 = new CreateOrUpdatePolicy ( )
1432+ var policy3 = new Policy ( )
14331433 {
14341434 Name = name51 ,
14351435 Type = PolicyType . OKTASIGNON ,
@@ -1483,7 +1483,7 @@ public async Task GivenValidScenario_WhenCreatingPolicySimulation_ThenResultsAre
14831483 try
14841484 {
14851485 // Create a test policy for simulation
1486- var policy = new CreateOrUpdatePolicy ( )
1486+ var policy = new Policy ( )
14871487 {
14881488 Name = $ "SDK-Test-Simulation-Policy-{ guid } ". Substring ( 0 , 50 ) ,
14891489 Type = PolicyType . OKTASIGNON ,
@@ -1617,7 +1617,7 @@ public async Task GivenHttpInfoMethods_WhenCallingApi_ThenApiResponseWithDetails
16171617 try
16181618 {
16191619 // CreatePolicyWithHttpInfo
1620- var policy = new CreateOrUpdatePolicy ( )
1620+ var policy = new Policy ( )
16211621 {
16221622 Name = $ "SDK-HttpInfo-Test-{ guid } ". Substring ( 0 , 50 ) ,
16231623 Type = PolicyType . OKTASIGNON ,
@@ -1654,7 +1654,7 @@ public async Task GivenHttpInfoMethods_WhenCallingApi_ThenApiResponseWithDetails
16541654 listResponse . Data . Should ( ) . Contain ( p => p . Id == policy1 . Id ) ;
16551655
16561656 // ReplacePolicyWithHttpInfo
1657- var updatePolicy = new CreateOrUpdatePolicy ( )
1657+ var updatePolicy = new Policy ( )
16581658 {
16591659 Name = createdPolicy . Name ,
16601660 Type = PolicyType . OKTASIGNON ,
0 commit comments