Пример #1
0
        public void CreateForSql_Int32ValueWithRetry_17()
        {
            SvoParameter.CreateForSql("par", 17);
            var act = SvoParameter.CreateForSql("par", 17);

            SqlParameterAssert.AreEqual("par", 17, DbType.Int32, act);
        }
Пример #2
0
        public void Create_Nullable100Percent_1Decimal()
        {
            Percentage?val = 1m;
            var        act = SvoParameter.CreateForSql("par", val);

            SqlParameterAssert.AreEqual("par", 1m, DbType.Decimal, act);
        }
Пример #3
0
        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);
        }
Пример #4
0
        public void CreateForSql_100Percent_1Decimal()
        {
            var act = SvoParameter.CreateForSql("par", Percentage.Hundred);

            SqlParameterAssert.AreEqual("par", 1m, DbType.Decimal, act);
        }
Пример #5
0
        public void CreateForSql_GenderFemale_2()
        {
            var act = SvoParameter.CreateForSql("par", Gender.Female);

            SqlParameterAssert.AreEqual("par", 2, DbType.Byte, act);
        }
Пример #6
0
        public void CreateForSql_IbanEmptyValue_DbNullValue()
        {
            var act = SvoParameter.CreateForSql("par", InternationalBankAccountNumber.Empty);

            SqlParameterAssert.AreEqual("par", DBNull.Value, DbType.String, act);
        }
Пример #7
0
        public void CreateForSql_NullablePercentage_DbNullValue()
        {
            var act = SvoParameter.CreateForSql("par", new Percentage?());

            SqlParameterAssert.AreEqual("par", DBNull.Value, DbType.String, act);
        }
Пример #8
0
        public void CreateForSql_Null_DBNullValue()
        {
            var act = SvoParameter.CreateForSql("par", null);

            SqlParameterAssert.AreEqual("par", DBNull.Value, DbType.String, act);
        }