Wasting Time

Ale, music and enjoying life.

Menu

  • Home
  • About
  • Music
  • Comps

Moq – Mocking the Request context and verifying SQLException is raised.

 Posted on May 17, 2017 by admin

 Leave a Comment

Mocking the Request on an API Controller Had an API controller under unit test which made use of the HttpMessageRequest which I needed to mock.How do I get a handle on this? Again pretty simple really (my initial train of thought was back to front…

 Category: Comps      Tags: HttpMessageRequest, Mock, Moq, nunit, SQLException, unit testing

Recent Posts
  • “Can’t add to Home Page” Android. Upgrading from Pixel 6 to Pixel 8a: How to Fix Missing Shortcuts 2nd June 2024
  • New Docs4Life Update: Simplified Claim Process and Wider Selection 21st October 2023
  • Playwright Infinite Scrolling. 29th May 2022
  • Hugh Cornwell @ Holmfirth Picturedrome – 25th March 2022 2nd April 2022
  • The Wickerman Festival 2008 30th October 2021
Categories
  • Comps (71)
  • General (20)
  • Music (85)
Meta
  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
  • View jim.radley1’s profile on Facebook
  • View theraven1979’s profile on Twitter
  • View theraven1979’s profile on Instagram
  • View jradley’s profile on LinkedIn
  • View theraven1979’s profile on YouTube
Top Posts
  • TeamCity Build - Excluding Projects From a Solution (sln) file.

Copyright © 2025 · All Rights Reserved · Wasting Time

Theme: Natural Lite by Organic Themes · RSS Feed