Esempio n. 1
0
 public void TypeTest()
 {
     TransactionInfo target = new TransactionInfo(); // TODO: Initialize to an appropriate value
     TransactionType expected = new TransactionType(); // TODO: Initialize to an appropriate value
     TransactionType actual;
     target.Type = expected;
     actual = target.Type;
     Assert.AreEqual(expected, actual);
     Assert.Inconclusive("Verify the correctness of this test method.");
 }
 protected void BindTransaction()
 {
     _transaction = BillingController.GetTransaction(TransactionId);
 }
Esempio n. 3
0
 public static void DeleteTransaction(TransactionInfo info)
 {
     DbCommand cmd = SqlHelpers.CreateCommand(ConnectionString);
     cmd.CommandText = @"bill_Transaction_Delete";
     cmd.AddInputParam("@Id", DbType.Guid, info.Id);
     int affectedRows = SqlHelpers.ExecuteNonQuery(cmd);
 }
Esempio n. 4
0
        public static void UpdateTransaction(ref TransactionInfo entity)
        {
            DbCommand cmd = SqlHelpers.CreateCommand(ConnectionString, "bill_Transaction_Update");

            cmd.AddInputParam("@Id", DbType.Guid, entity.Id);
            cmd.AddInputParam("@OrderId", DbType.Guid, entity.OrderId);
            cmd.AddInputParam("@GatewayId", DbType.Guid, entity.GatewayId);
            cmd.AddInputParam("@SubscriptionId", DbType.Guid, entity.SubscriptionId);
            cmd.AddInputParam("@CreateDate", DbType.DateTime, entity.CreateDate);
            cmd.AddInputParam("@Type", DbType.Int16, entity.Type);
            cmd.AddInputParam("@Status", DbType.Int16, entity.Status);
            cmd.AddInputParam("@Amount", DbType.Currency, entity.Amount);
            cmd.AddInputParam("@GatewayAmount", DbType.Currency, entity.GatewayAmount);
            cmd.AddInputParam("@ResponseText", DbType.String, entity.ResponseText);
            cmd.AddInputParam("@IsTrial", DbType.Boolean, entity.IsTrial);
            cmd.AddInputParam("@CreditCardID", DbType.Guid, entity.CreditCardID);

            SqlHelpers.ExecuteNonQuery(cmd);
        }
Esempio n. 5
0
 public static void Refund(GatewayInfo gateway, GatewayTypeInfo gatewayType, Guid orderId, ICustomer customer, CreditCardInfo card, string refID, TransactionInfo transaction, bool testTransaction)
 {
     Instance.Refund(gateway, gatewayType, orderId, customer, card, refID, transaction, testTransaction);
 }
Esempio n. 6
0
 public void AmountTest()
 {
     TransactionInfo target = new TransactionInfo(); // TODO: Initialize to an appropriate value
     Decimal expected = new Decimal(); // TODO: Initialize to an appropriate value
     Decimal actual;
     target.Amount = expected;
     actual = target.Amount;
     Assert.AreEqual(expected, actual);
     Assert.Inconclusive("Verify the correctness of this test method.");
 }
Esempio n. 7
0
 public void TransactionInfoConstructorTest()
 {
     TransactionInfo target = new TransactionInfo();
     Assert.Inconclusive("TODO: Implement code to verify target");
 }
Esempio n. 8
0
 public void CreditCardIDTest()
 {
     TransactionInfo target = new TransactionInfo(); // TODO: Initialize to an appropriate value
     Guid expected = new Guid(); // TODO: Initialize to an appropriate value
     Guid actual;
     target.CreditCardID = expected;
     actual = target.CreditCardID;
     Assert.AreEqual(expected, actual);
     Assert.Inconclusive("Verify the correctness of this test method.");
 }
Esempio n. 9
0
 public void CustomerNameTest()
 {
     TransactionInfo target = new TransactionInfo(); // TODO: Initialize to an appropriate value
     string expected = string.Empty; // TODO: Initialize to an appropriate value
     string actual;
     target.CustomerName = expected;
     actual = target.CustomerName;
     Assert.AreEqual(expected, actual);
     Assert.Inconclusive("Verify the correctness of this test method.");
 }
Esempio n. 10
0
 public void FriendlyOrderIDTest()
 {
     TransactionInfo target = new TransactionInfo(); // TODO: Initialize to an appropriate value
     string actual;
     actual = target.FriendlyOrderID;
     Assert.Inconclusive("Verify the correctness of this test method.");
 }
Esempio n. 11
0
 public void IsTrialTest()
 {
     TransactionInfo target = new TransactionInfo(); // TODO: Initialize to an appropriate value
     bool expected = false; // TODO: Initialize to an appropriate value
     bool actual;
     target.IsTrial = expected;
     actual = target.IsTrial;
     Assert.AreEqual(expected, actual);
     Assert.Inconclusive("Verify the correctness of this test method.");
 }
Esempio n. 12
0
 public abstract void Refund(GatewayInfo gateway, GatewayTypeInfo gatewayType, Guid orderId, ICustomer customer, CreditCardInfo card, string refID, TransactionInfo transaction, bool testTransaction);