public void GivenMimeType_WhenDeriving_ThenNameIsRequired() { var builder = new MediaTypeBuilder(this.DatabaseSession); var mediaType = builder.Build(); Assert.IsTrue(this.DatabaseSession.Derive().HasErrors); this.DatabaseSession.Rollback(); builder.WithName("image/gif"); mediaType = builder.Build(); Assert.IsFalse(this.DatabaseSession.Derive().HasErrors); }