Beispiel #1
0
        public void errorDataConstruction()
        {
            ErrorData err = ErrorData.CreateInstance(this.errorResponse, "error", 0);

            Assert.AreEqual(580022, err.errorId);
            Assert.AreEqual(ErrorSeverity.ERROR, err.severity);
            Assert.AreEqual(ErrorCategory.APPLICATION, err.category);
            Assert.AreEqual(2, err.parameter.Count);
            Assert.AreEqual("shippingTaxName", err.parameter[0].name);
            Console.WriteLine(err.severity);
            err = ErrorData.CreateInstance(this.errorResponse, "xyz", 0);
            Assert.AreEqual(null, err);
        }