public void CreateForSql_Int32ValueWithRetry_17() { SvoParameter.CreateForSql("par", 17); var act = SvoParameter.CreateForSql("par", 17); SqlParameterAssert.AreEqual("par", 17, DbType.Int32, act); }
public void Create_Nullable100Percent_1Decimal() { Percentage?val = 1m; var act = SvoParameter.CreateForSql("par", val); SqlParameterAssert.AreEqual("par", 1m, DbType.Decimal, act); }
public void CreateForSql_UuidNew_GuidNew() { var val = Uuid.NewUuid(); var exp = (Guid)val; var act = SvoParameter.CreateForSql("par", val); SqlParameterAssert.AreEqual("par", exp, DbType.Guid, act); }
public void CreateForSql_100Percent_1Decimal() { var act = SvoParameter.CreateForSql("par", Percentage.Hundred); SqlParameterAssert.AreEqual("par", 1m, DbType.Decimal, act); }
public void CreateForSql_GenderFemale_2() { var act = SvoParameter.CreateForSql("par", Gender.Female); SqlParameterAssert.AreEqual("par", 2, DbType.Byte, act); }
public void CreateForSql_IbanEmptyValue_DbNullValue() { var act = SvoParameter.CreateForSql("par", InternationalBankAccountNumber.Empty); SqlParameterAssert.AreEqual("par", DBNull.Value, DbType.String, act); }
public void CreateForSql_NullablePercentage_DbNullValue() { var act = SvoParameter.CreateForSql("par", new Percentage?()); SqlParameterAssert.AreEqual("par", DBNull.Value, DbType.String, act); }
public void CreateForSql_Null_DBNullValue() { var act = SvoParameter.CreateForSql("par", null); SqlParameterAssert.AreEqual("par", DBNull.Value, DbType.String, act); }