public async Task DocumentFieldInitMissing() { using (var api = CreateApi()) { var field = new Piranha.Extend.Fields.DocumentField { Id = Guid.NewGuid() }; await field.Init(api); Assert.Null(field.Id); } }
public void DocumentFieldInitMissing() { using (var api = new Api(GetDb(), new ContentServiceFactory(services), storage)) { var field = new Piranha.Extend.Fields.DocumentField { Id = Guid.NewGuid() }; field.Init(api); Assert.Null(field.Id); } }