For unit testing purpose, please provide example of how to create dummy data using C# for the response returned by Search Resource Availability for Requirement Group API

Vivek Gupta 1 Reputation point
2021-09-22T09:42:59.443+00:00

Hi,

I am using FakeXrmEasy for creating unit tests for D365 plugins.

As per https://learn.microsoft.com/en-us/dynamics365/customer-service/universal-resource-scheduling#bkmk_sra_rg , the Search Resource Availability for Requirement Group API returns properties like TimeSlots, ProposalResourceAssignmentSets, Requirements etc.

For unit testing purpose, please provide example of how to create dummy data using C# for the response (property: ProposalResourceAssignmentSets) returned by Search Resource Availability for Requirement Group API so that I can query it using EntityCollection.

Thanks in advance.

Community Center Not monitored
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Anna Xiu-MSFT 31,056 Reputation points Microsoft External Staff
    2021-09-23T06:41:53.253+00:00

    Hi anonymous user,

    Dynamics 365 is currently not supported in the Microsoft Q&A, the supported products are listed over here https://learn.microsoft.com/en-us/answers/products (more to be added later on).

    You can ask in the dedicated Dynamics 365 forum over here:
    https://community.dynamics.com/login?ReturnUrl=/p/new-post?fid=117

    Thanks for your understanding.

    Sincerely,
    Anna
    *
    If the answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.