Exemple #1
0
            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);
            }
Exemple #2
0
 public DefaultLocalizationValidationAttributeAdapterTest()
 {
     AdapterUnderTest = new DefaultLocalizationValidationAttributeAdapter();
 }
Exemple #3
0
 public DefaultLocalizationValidationAttributeAdapterTest()
 {
     Options          = new ForEvolveMvcDefaultLocalizationAdapterOptions();
     AdapterUnderTest = new DefaultLocalizationValidationAttributeAdapter(Options);
 }