예제 #1
0
        public async Task MediaFieldInitMissing()
        {
            using (var api = CreateApi()) {
                var field = new Piranha.Extend.Fields.MediaField {
                    Id = Guid.NewGuid()
                };

                await field.Init(api);

                Assert.Null(field.Id);
            }
        }
예제 #2
0
        public void MediaFieldInitMissing()
        {
            using (var api = new Api(GetDb(), new ContentServiceFactory(services), storage)) {
                var field = new Piranha.Extend.Fields.MediaField {
                    Id = Guid.NewGuid()
                };

                field.Init(api);

                Assert.Null(field.Id);
            }
        }