Skip to content

MockProvider can't retrieve CalendarView events #27

@michael-hawker

Description

@michael-hawker

Describe the bug

Calling this fails with MockProvider, works fine with InteractiveProvider:

                // Calendar Data, Today and Tomorrow (As Local)
                var today = DateTimeOffset.Now.Date.ToUniversalTime();
                var events = await provider.Graph.Me.CalendarView.Request(new[]
                {
                    new QueryOption("startDateTime", today.ToString("o", CultureInfo.InvariantCulture)),
                    new QueryOption("endDateTime", today.AddDays(2).ToString("o", CultureInfo.InvariantCulture)),
                }).OrderBy("start/dateTime").GetAsync();

Expected behavior

Should retrieve events, see #24, seems like there's an issue in our workaround from #25 in order to get around the Graph SDK issue: microsoftgraph/msgraph-sdk-dotnet-core#59

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions