DEV Community

Discussion on: C# : How to unit test Graph SDK with Select Query

Collapse
 
sanoojvs profile image
Sanooj V S • Edited

@kenakamu do you have unit test code for NUnit framework? I have exactly same logic to get GraphUser object.

I can Substitute for (IGraphServiceUsersCollectionRequestBuilder). But I am not able to Returns(the Microsoft User object) to collection request builder object.

Collapse
 
kenakamu profile image
Kenichiro Nakamura

I haven't personally tried nunit but it should work quite similar way