@@ -22,15 +22,15 @@ public void FieldRoundtrip_Works()
2222 CreatedAt = DateTimeOffset . Parse ( "2019-12-27T18:11:19.117Z" ) ,
2323 IntegrationConfig = new IntegrationConfigResponseGitHubConfig ( )
2424 {
25- Permission = "permission" ,
25+ Permission = IntegrationConfigResponseGitHubConfigPermission . Pull ,
2626 TargetID = "target_id" ,
2727 } ,
2828 IntegrationType = EntitlementIntegrationType . Discord ,
2929 IsActive = true ,
30+ Metadata = new Dictionary < string , string > ( ) { { "foo" , "string" } } ,
3031 Name = "name" ,
3132 UpdatedAt = DateTimeOffset . Parse ( "2019-12-27T18:11:19.117Z" ) ,
3233 Description = "description" ,
33- Metadata = JsonSerializer . Deserialize < JsonElement > ( "{}" ) ,
3434 } ,
3535 ] ,
3636 } ;
@@ -44,15 +44,15 @@ public void FieldRoundtrip_Works()
4444 CreatedAt = DateTimeOffset . Parse ( "2019-12-27T18:11:19.117Z" ) ,
4545 IntegrationConfig = new IntegrationConfigResponseGitHubConfig ( )
4646 {
47- Permission = "permission" ,
47+ Permission = IntegrationConfigResponseGitHubConfigPermission . Pull ,
4848 TargetID = "target_id" ,
4949 } ,
5050 IntegrationType = EntitlementIntegrationType . Discord ,
5151 IsActive = true ,
52+ Metadata = new Dictionary < string , string > ( ) { { "foo" , "string" } } ,
5253 Name = "name" ,
5354 UpdatedAt = DateTimeOffset . Parse ( "2019-12-27T18:11:19.117Z" ) ,
5455 Description = "description" ,
55- Metadata = JsonSerializer . Deserialize < JsonElement > ( "{}" ) ,
5656 } ,
5757 ] ;
5858
@@ -77,15 +77,15 @@ public void SerializationRoundtrip_Works()
7777 CreatedAt = DateTimeOffset . Parse ( "2019-12-27T18:11:19.117Z" ) ,
7878 IntegrationConfig = new IntegrationConfigResponseGitHubConfig ( )
7979 {
80- Permission = "permission" ,
80+ Permission = IntegrationConfigResponseGitHubConfigPermission . Pull ,
8181 TargetID = "target_id" ,
8282 } ,
8383 IntegrationType = EntitlementIntegrationType . Discord ,
8484 IsActive = true ,
85+ Metadata = new Dictionary < string , string > ( ) { { "foo" , "string" } } ,
8586 Name = "name" ,
8687 UpdatedAt = DateTimeOffset . Parse ( "2019-12-27T18:11:19.117Z" ) ,
8788 Description = "description" ,
88- Metadata = JsonSerializer . Deserialize < JsonElement > ( "{}" ) ,
8989 } ,
9090 ] ,
9191 } ;
@@ -113,15 +113,15 @@ public void FieldRoundtripThroughSerialization_Works()
113113 CreatedAt = DateTimeOffset . Parse ( "2019-12-27T18:11:19.117Z" ) ,
114114 IntegrationConfig = new IntegrationConfigResponseGitHubConfig ( )
115115 {
116- Permission = "permission" ,
116+ Permission = IntegrationConfigResponseGitHubConfigPermission . Pull ,
117117 TargetID = "target_id" ,
118118 } ,
119119 IntegrationType = EntitlementIntegrationType . Discord ,
120120 IsActive = true ,
121+ Metadata = new Dictionary < string , string > ( ) { { "foo" , "string" } } ,
121122 Name = "name" ,
122123 UpdatedAt = DateTimeOffset . Parse ( "2019-12-27T18:11:19.117Z" ) ,
123124 Description = "description" ,
124- Metadata = JsonSerializer . Deserialize < JsonElement > ( "{}" ) ,
125125 } ,
126126 ] ,
127127 } ;
@@ -142,15 +142,15 @@ public void FieldRoundtripThroughSerialization_Works()
142142 CreatedAt = DateTimeOffset . Parse ( "2019-12-27T18:11:19.117Z" ) ,
143143 IntegrationConfig = new IntegrationConfigResponseGitHubConfig ( )
144144 {
145- Permission = "permission" ,
145+ Permission = IntegrationConfigResponseGitHubConfigPermission . Pull ,
146146 TargetID = "target_id" ,
147147 } ,
148148 IntegrationType = EntitlementIntegrationType . Discord ,
149149 IsActive = true ,
150+ Metadata = new Dictionary < string , string > ( ) { { "foo" , "string" } } ,
150151 Name = "name" ,
151152 UpdatedAt = DateTimeOffset . Parse ( "2019-12-27T18:11:19.117Z" ) ,
152153 Description = "description" ,
153- Metadata = JsonSerializer . Deserialize < JsonElement > ( "{}" ) ,
154154 } ,
155155 ] ;
156156
@@ -175,15 +175,15 @@ public void Validation_Works()
175175 CreatedAt = DateTimeOffset . Parse ( "2019-12-27T18:11:19.117Z" ) ,
176176 IntegrationConfig = new IntegrationConfigResponseGitHubConfig ( )
177177 {
178- Permission = "permission" ,
178+ Permission = IntegrationConfigResponseGitHubConfigPermission . Pull ,
179179 TargetID = "target_id" ,
180180 } ,
181181 IntegrationType = EntitlementIntegrationType . Discord ,
182182 IsActive = true ,
183+ Metadata = new Dictionary < string , string > ( ) { { "foo" , "string" } } ,
183184 Name = "name" ,
184185 UpdatedAt = DateTimeOffset . Parse ( "2019-12-27T18:11:19.117Z" ) ,
185186 Description = "description" ,
186- Metadata = JsonSerializer . Deserialize < JsonElement > ( "{}" ) ,
187187 } ,
188188 ] ,
189189 } ;
@@ -205,15 +205,15 @@ public void CopyConstructor_Works()
205205 CreatedAt = DateTimeOffset . Parse ( "2019-12-27T18:11:19.117Z" ) ,
206206 IntegrationConfig = new IntegrationConfigResponseGitHubConfig ( )
207207 {
208- Permission = "permission" ,
208+ Permission = IntegrationConfigResponseGitHubConfigPermission . Pull ,
209209 TargetID = "target_id" ,
210210 } ,
211211 IntegrationType = EntitlementIntegrationType . Discord ,
212212 IsActive = true ,
213+ Metadata = new Dictionary < string , string > ( ) { { "foo" , "string" } } ,
213214 Name = "name" ,
214215 UpdatedAt = DateTimeOffset . Parse ( "2019-12-27T18:11:19.117Z" ) ,
215216 Description = "description" ,
216- Metadata = JsonSerializer . Deserialize < JsonElement > ( "{}" ) ,
217217 } ,
218218 ] ,
219219 } ;
0 commit comments