Ejemplo n.º 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);
            }
Ejemplo n.º 2
0
 public DefaultLocalizationValidationAttributeAdapterTest()
 {
     AdapterUnderTest = new DefaultLocalizationValidationAttributeAdapter();
 }
Ejemplo n.º 3
0
 public DefaultLocalizationValidationAttributeAdapterTest()
 {
     Options          = new ForEvolveMvcDefaultLocalizationAdapterOptions();
     AdapterUnderTest = new DefaultLocalizationValidationAttributeAdapter(Options);
 }