Office Addin Mock does not support basic API usage of .items
to get array of PowerPoint.Slide
#904
Labels
.items
to get array of PowerPoint.Slide
#904
Prerequisites
Please answer the following questions before submitting an issue.
YOU MAY DELETE THE PREREQUISITES SECTION.
I checked to make sure that this issue has not already been filed
I checked the documentation and found no answer
Expected behavior
I should be able to access an array PowerPoint.Slide by accessing PowerPoint.SlideCollection.items field. This works just fine outside of the tests.
example:
Current behavior
The current behavior does not allow me to use the
items
field which is available inPowerPoint.SlideCollection
, and all other collections. I see two issues:items
is not included in the props argument for thecontext.load
method in production. But it seems that the OfficeMock is executing the navigational properties to be explicitly availableitems
array well (see bellow code) from what I could tell, any items in the array do not get turned into an officeMock object.Steps to Reproduce
run this test
Please provide detailed steps for reproducing the issue.
Error: Property id needs to be present in object model before load is called
Context
Please provide any relevant information about your setup. This is important in case the issue is not reproducible except for under certain conditions.
Failure Logs
The text was updated successfully, but these errors were encountered: