public void Should_be_able_to_set_as_email() { builder.AsEmail(); Assert.Equal("EmailAddress", item.TemplateName); Assert.NotEmpty(item.Validations); }
public void Should_be_able_to_set_as_email() { builder.AsEmail(); var configurator = (IModelMetadataItemConfigurator)builder; var item1 = new ModelMetadataItem(); configurator.Configure(item1); var item = item1; Assert.Equal("EmailAddress", item.TemplateName); Assert.NotEmpty(item.Validations); }