public void CreateDatabaseCommandParameter_CreateDatabaseCommandParameter_ReturnsIDatabaseCommandParameterInstance()
        {
            // Arrange
            ISqlClassProvider sut       = CreateSut();
            string            paramName = string.Empty;
            object            value     = null;
            SqlDbType         sqlDbType = SqlDbType.Int;
            bool isNullable             = false;

            // Act
            var result = sut.CreateDatabaseCommandParameter(paramName, value, sqlDbType, isNullable);

            // Assert
            Assert.IsInstanceOf <IDatabaseCommandParameter>(result);
        }
Ejemplo n.º 2
0
 private Expression <Func <object, IDatabaseCommandParameter> > GetSqlParameter(ISqlPropertyConfiguration config, string paramName, bool isNullable = true)
 {
     return((value) => _sqlClassProvider.CreateDatabaseCommandParameter(paramName, value, config.SqlDbType.Value, isNullable));
 }