@@ -203,7 +203,7 @@ public async Task CreateDatabaseAsync()
203
203
createDatabaseParameters . Properties = new Dictionary < string , IPropertySchema >
204
204
{
205
205
{ "Name" , new TitlePropertySchema { Title = new Dictionary < string , object > ( ) } } ,
206
- { "Price" , new NumberPropertySchema { Number = new Number { Format = NumberFormat . Dollar } } } ,
206
+ { "Price" , new NumberPropertySchema { Number = new Number { Format = "dollar" } } } ,
207
207
{ "Food group" , new SelectPropertySchema
208
208
{
209
209
Select = new OptionWrapper < SelectOptionSchema >
@@ -212,17 +212,17 @@ public async Task CreateDatabaseAsync()
212
212
{
213
213
new SelectOptionSchema
214
214
{
215
- Color = Color . Green ,
215
+ Color = "green" ,
216
216
Name = "🥦Vegetable"
217
217
} ,
218
218
new SelectOptionSchema
219
219
{
220
- Color = Color . Red ,
220
+ Color = "red" ,
221
221
Name = "🍎Fruit"
222
222
} ,
223
223
new SelectOptionSchema
224
224
{
225
- Color = Color . Yellow ,
225
+ Color = "yellow" ,
226
226
Name = "💪Protein"
227
227
}
228
228
}
@@ -246,17 +246,17 @@ public async Task CreateDatabaseAsync()
246
246
option =>
247
247
{
248
248
option . Name . Should ( ) . Be ( "🥦Vegetable" ) ;
249
- option . Color . Should ( ) . Be ( Color . Green ) ;
249
+ option . Color . Should ( ) . Be ( "green" ) ;
250
250
} ,
251
251
option =>
252
252
{
253
253
option . Name . Should ( ) . Be ( "🍎Fruit" ) ;
254
- option . Color . Should ( ) . Be ( Color . Red ) ;
254
+ option . Color . Should ( ) . Be ( "red" ) ;
255
255
} ,
256
256
option =>
257
257
{
258
258
option . Name . Should ( ) . Be ( "💪Protein" ) ;
259
- option . Color . Should ( ) . Be ( Color . Yellow ) ;
259
+ option . Color . Should ( ) . Be ( "yellow" ) ;
260
260
}
261
261
) ;
262
262
}
@@ -292,7 +292,7 @@ public async Task UpdateDatabaseAsync()
292
292
updateDatabaseParameters . Properties = new Dictionary < string , IUpdatePropertySchema >
293
293
{
294
294
{ "Name" , new TitleUpdatePropertySchema { Title = new Dictionary < string , object > ( ) } } ,
295
- { "Price" , new NumberUpdatePropertySchema { Number = new Number { Format = NumberFormat . Yen } } } ,
295
+ { "Price" , new NumberUpdatePropertySchema { Number = new Number { Format = "yen" } } } ,
296
296
{ "Food group" , new SelectUpdatePropertySchema
297
297
{
298
298
Select = new OptionWrapper < SelectOption >
@@ -301,17 +301,17 @@ public async Task UpdateDatabaseAsync()
301
301
{
302
302
new SelectOption
303
303
{
304
- Color = Color . Green ,
304
+ Color = "green" ,
305
305
Name = "🥦Vegetables"
306
306
} ,
307
307
new SelectOption
308
308
{
309
- Color = Color . Red ,
309
+ Color = "red" ,
310
310
Name = "🍎Fruit"
311
311
} ,
312
312
new SelectOption
313
313
{
314
- Color = Color . Yellow ,
314
+ Color = "yellow" ,
315
315
Name = "💪Protein"
316
316
}
317
317
}
@@ -344,22 +344,22 @@ public async Task UpdateDatabaseAsync()
344
344
option =>
345
345
{
346
346
option . Name . Should ( ) . Be ( "🥦Vegetables" ) ;
347
- option . Color . Should ( ) . Be ( Color . Green ) ;
347
+ option . Color . Should ( ) . Be ( "green" ) ;
348
348
} ,
349
349
option =>
350
350
{
351
351
option . Name . Should ( ) . Be ( "🍎Fruit" ) ;
352
- option . Color . Should ( ) . Be ( Color . Red ) ;
352
+ option . Color . Should ( ) . Be ( "red" ) ;
353
353
} ,
354
354
option =>
355
355
{
356
356
option . Name . Should ( ) . Be ( "💪Protein" ) ;
357
- option . Color . Should ( ) . Be ( Color . Yellow ) ;
357
+ option . Color . Should ( ) . Be ( "yellow" ) ;
358
358
}
359
359
) ;
360
360
361
361
var price = ( NumberProperty ) database . Properties [ "Price" ] ;
362
- price . Number . Format . Should ( ) . Be ( NumberFormat . Yen ) ;
362
+ price . Number . Format . Should ( ) . Be ( "yen" ) ;
363
363
}
364
364
365
365
[ Fact ]
@@ -398,7 +398,7 @@ public async Task FormulaPropertyCanBeSetWhenCreatingDatabase()
398
398
createDatabaseParameters . Properties = new Dictionary < string , IPropertySchema >
399
399
{
400
400
{ "Cost of next trip" , new FormulaPropertySchema { Formula = new Formula { Expression = "if(prop(\" In stock\" ), 0, prop(\" Price\" ))" } } } ,
401
- { "Price" , new NumberPropertySchema { Number = new Number { Format = NumberFormat . Dollar } } }
401
+ { "Price" , new NumberPropertySchema { Number = new Number { Format = "dollar" } } }
402
402
} ;
403
403
404
404
var database = await _client . CreateAsync ( createDatabaseParameters ) ;
0 commit comments