public void Value_WhenParameterDbTypeAttributeConstructedWithValidValue_ReturnsConstructedValue() { // ARRANGE const SqlDbType expectedValue = SqlDbType.DateTimeOffset; // ACT var directionAttribute = new DbTypeAttribute(expectedValue); var actualValue = directionAttribute.Value; // ASSERT Assert.AreEqual(expectedValue, actualValue); }
private void SetParameterDbTypeAttributeIfExists() { _sqlDbTypeAttribute = _property.GetAttribute<DbTypeAttribute>(); }