public void Should_set_SupportedAttributes() { // Arrange var supportedAttributes = new string[] { "asdf", "sdfg" }; var options = new ForEvolveMvcDefaultLocalizationAdapterOptions(supportedAttributes); // Act var adapter = new DefaultLocalizationValidationAttributeAdapter(options); // Assert Assert.Equal(adapter.SupportedAttributes, supportedAttributes); }
public DefaultLocalizationValidationAttributeAdapterTest() { AdapterUnderTest = new DefaultLocalizationValidationAttributeAdapter(); }
public DefaultLocalizationValidationAttributeAdapterTest() { Options = new ForEvolveMvcDefaultLocalizationAdapterOptions(); AdapterUnderTest = new DefaultLocalizationValidationAttributeAdapter(Options); }