예제 #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.");
 }
예제 #2
0
 protected void BindTransaction()
 {
     _transaction = BillingController.GetTransaction(TransactionId);
 }
예제 #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);
 }
예제 #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);
        }
예제 #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);
 }
예제 #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.");
 }
예제 #7
0
 public void TransactionInfoConstructorTest()
 {
     TransactionInfo target = new TransactionInfo();
     Assert.Inconclusive("TODO: Implement code to verify target");
 }
예제 #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.");
 }
예제 #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.");
 }
예제 #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.");
 }
예제 #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.");
 }
예제 #12
0
 public abstract void Refund(GatewayInfo gateway, GatewayTypeInfo gatewayType, Guid orderId, ICustomer customer, CreditCardInfo card, string refID, TransactionInfo transaction, bool testTransaction);