Wasting Time

Ale, music and enjoying life.

Menu

  • Home
  • About
  • Music
  • Comps

Mock a return type of Task and Tuple with Moq

 Posted on August 5, 2020 by admin

 Leave a Comment

moq logo

Issue Using Moq I was creating a few unit tests and stumbled across an interesting problem. I needed to mock a call to an async method on a service under test that took in a 2 parameters and returned a tuple of 2 values….

 Category: Comps      Tags: Moq, Tasks, unit tests

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
  • Hide Endpoints And Schemas from Swagger / OpenAPI
  • The Token obtained from the Token Provider is wrong - Azure Notifications

Copyright © 2025 · All Rights Reserved · Wasting Time

Theme: Natural Lite by Organic Themes · RSS Feed