public void Parameter_is_no_op_when_not_found()
        {
            var configuration = new LightweightInsertModificationFunctionConfiguration(typeof(Entity));

            Assert.Same(configuration, configuration.Parameter("Int1", "Foo"));
            Assert.Same(configuration, configuration.Parameter(typeof(Entity).GetProperty("String1"), "Foo"));
        }
        public void Result_should_return_configuration_for_valid_property_expressions()
        {
            var configuration = new LightweightInsertModificationFunctionConfiguration(typeof(Entity));

            Assert.Same(configuration, configuration.Result("Int", "Foo"));
            Assert.Same(configuration, configuration.Result(typeof(Entity).GetProperty("String"), "Foo"));
        }
        public void Parameter_is_no_op_when_not_found()
        {
            var configuration = new LightweightInsertModificationFunctionConfiguration(typeof(Entity));

            Assert.Same(configuration, configuration.Parameter("Int1", "Foo"));
            Assert.Same(configuration, configuration.Parameter(typeof(Entity).GetProperty("String1"), "Foo"));
        }
        public void Result_should_return_configuration_for_valid_property_expressions()
        {
            var configuration = new LightweightInsertModificationFunctionConfiguration(typeof(Entity));

            Assert.Same(configuration, configuration.Result("Int", "Foo"));
            Assert.Same(configuration, configuration.Result(typeof(Entity).GetProperty("String"), "Foo"));
        }
        public void HasName_should_set_name_on_underlying_configuration()
        {
            var configuration = new LightweightInsertModificationFunctionConfiguration(typeof(Entity));

            configuration.HasName("Foo");

            Assert.Equal("Foo", configuration.Configuration.Name);
        }
        public void HasName_should_set_name_on_underlying_configuration()
        {
            var configuration = new LightweightInsertModificationFunctionConfiguration(typeof(Entity));

            configuration.HasName("Foo");

            Assert.Equal("Foo", configuration.Configuration.Name);
        }