コード例 #1
0
        public void GetDiscountByCodeTest()
        {
            // Arrange
            DataDiscount dataDiscount = new DataDiscount();

            // Act
            decimal Amount = (decimal)dataDiscount.GetDiscountByCode("RABAT10");

            // Assert
            Assert.AreEqual(0.90m, Amount);
        }
コード例 #2
0
 public decimal GetDiscountByCode(string code)
 {
     return(dataDiscount.GetDiscountByCode(code));
 }