public void Parameter_should_return_configuration_for_valid_property_expressions_when_original_values() { var configuration = new ConventionUpdateModificationFunctionConfiguration(typeof(Entity)); Assert.Same(configuration, configuration.Parameter("Int", "Foo", "Bar")); Assert.Same(configuration, configuration.Parameter(typeof(Entity).GetProperty("String"), "Foo", "Bar")); }
public void Parameter_should_return_configuration_for_valid_property_expressions_when_original_values() { var configuration = new ConventionUpdateModificationFunctionConfiguration(typeof(Entity)); Assert.Same(configuration, configuration.Parameter("Int", "Foo", "Bar")); Assert.Same(configuration, configuration.Parameter(typeof(Entity).GetProperty("String"), "Foo", "Bar")); }
public void Parameter_is_no_op_when_not_found() { var configuration = new ConventionUpdateModificationFunctionConfiguration(typeof(Entity)); Assert.Same(configuration, configuration.Parameter("Int1", "Foo")); Assert.Same(configuration, configuration.Parameter(typeof(Entity).GetProperty("String1"), "Foo")); }
public void Parameter_is_no_op_when_not_found() { var configuration = new ConventionUpdateModificationFunctionConfiguration(typeof(Entity)); Assert.Same(configuration, configuration.Parameter("Int1", "Foo")); Assert.Same(configuration, configuration.Parameter(typeof(Entity).GetProperty("String1"), "Foo")); }