public void RejectNullQuoteTest() { ContentAPI client = ConstructServiceClient(); RejectQuoteStatus result = client.RejectQuote(0); Assert.AreEqual(result, RejectQuoteStatus.BadRequest); }
/// <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 { } }