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); } }
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); } }