예제 #1
0
        public void RejectNullQuoteTest()
        {
            ContentAPI client = ConstructServiceClient();

            RejectQuoteStatus result = client.RejectQuote(0);

            Assert.AreEqual(result, RejectQuoteStatus.BadRequest);
        }
예제 #2
0
        /// <summary>
        ///
        /// </summary>
        /// <returns></returns>
        private void CleanupQuoteSetup(ContentAPI client, Quote quote)
        {
            // Never fail (future implementation of ListQuotes will help this)
            try
            {
                RejectQuoteStatus result = client.RejectQuote(quote.QuoteID);

                // Unit test breakpoint line
                if (result == RejectQuoteStatus.Success)
                {
                    result = RejectQuoteStatus.Success;
                }
            }
            catch { }
        }