none
Unit Test "Group Creation" using "GraphServiceClient" mocked object RRS feed

  • Question

  • I have a query : how to mock GraphServiceClient so that we can unit test Group Creation successfully without making call to actual graph instance. Any fake mocking and fake group creation unit test process available .?

    I want to test function which are performing following actions: await graphServiceClient.Groups.Request() .AddAsync(new Group(...)) await graphServiceClient.Groups[addedGroup.Id].Owners.References.Request().AddAsync(owner); await graphServiceClient.Groups[group.Id].Request().DeleteAsync();


    Saturday, October 19, 2019 2:00 PM

All replies