Пример #1
0
        public async void CreateWithCode()
        {
            var field = FieldUtilities.GetRandomField(FieldType.Code);
            await Storage.Metadata.Field.CreateAsync(field, CancellationToken.None);

            var field2 = await Storage.Metadata.Field.FindByIdAsync(field.Id, CancellationToken.None);

            Assert.True(field.CodeConfiguration.SameAs(field2.CodeConfiguration));
        }
Пример #2
0
 public async void CreateWithNumber()
 {
     await Storage.Metadata.Field.CreateAsync(FieldUtilities.GetRandomField(FieldType.Number), CancellationToken.None);
 }