Completed
Last Updated: 13 Nov 2024 19:11 by Drew
Drew
Created on: 03 Jan 2024 10:13
Type: Feature Request
1
Using ReturnsAsync When Automocking

There are no ReturnsAsync methods for mocking container async methods.

There should be a set of methods to mock async methods of a container similar to regular object mocking.

As a user I should be able to write code like:

 

container.Arrange<IContainer>(r => r.SomeAsyncMethod("data")).ReturnsAsync("returnValue");

2 comments
Drew
Posted on: 13 Nov 2024 19:11
Thank you, Ivo! Much appreciated.
ADMIN
Ivo
Posted on: 13 Nov 2024 15:25

The requested feature is available in Q4 2024 (2024.4.1113.345)

Regards,
Ivo
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.