public void optional_named_parameters() { var attr = new ParakeetAttribute(propertyName: "MyName", tableName: "dbo.MyTable", dbType: DbType.Binary); attr.Name.ShouldBe("MyName"); attr.TableName.ShouldBe("dbo.MyTable"); attr.Direction.ShouldBe(ParameterDirection.Input); attr.DbType.ShouldBe(DbType.Binary); attr.Size.ShouldBeNull(); attr.Precision.ShouldBeNull(); attr.Scale.ShouldBeNull(); }
public void default_attribute_values() { var attr = new ParakeetAttribute("MyName"); attr.Name.ShouldBe("MyName"); attr.TableName.ShouldBeNull(); attr.Direction.ShouldBe(ParameterDirection.Input); attr.DbType.ShouldBeNull(); attr.Size.ShouldBeNull(); attr.Precision.ShouldBeNull(); attr.Scale.ShouldBeNull(); }