Skip to content

Commit 2d07289

Browse files
authored
Merge pull request pnp#242 from pnp/specialfields
Field handling (creation / reading / setting) + RegionalSettings + many small fixes + update of all offline test files
2 parents 9f29660 + 1d80d90 commit 2d07289

File tree

3,312 files changed

+14862
-9220
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

3,312 files changed

+14862
-9220
lines changed

src/sdk/PnP.Core.Test/Base/GraphV1BetaTests.cs

+7-3
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,10 @@ public async Task GetV1vsBetaPropertyViaGraph()
6767
Assert.IsTrue(team.IsPropertyAvailable(p => p.PrimaryChannel));
6868
Assert.IsTrue(team.PrimaryChannel.IsPropertyAvailable(p => p.Id));
6969

70+
// !! MembershipType and IsFavoriteByDefault are now GA !!
71+
7072
// Are other properties still not available: IsFavoriteByDefault is a beta property on a teamchannel, so it should not be available at this point
71-
Assert.IsFalse(team.PrimaryChannel.IsPropertyAvailable(p => p.IsFavoriteByDefault));
73+
Assert.IsTrue(team.PrimaryChannel.IsPropertyAvailable(p => p.IsFavoriteByDefault));
7274

7375
// get the primary channel again, but now explicitely request the beta properties MembershipType and IsFavoriteByDefault
7476
await team.PrimaryChannel.GetAsync(p => p.MembershipType, p => p.DisplayName, p => p.IsFavoriteByDefault);
@@ -115,15 +117,17 @@ public async Task GetV1vsBetaPropertyViaGraphNoBeta()
115117
Assert.IsTrue(team.IsPropertyAvailable(p => p.PrimaryChannel));
116118
Assert.IsTrue(team.PrimaryChannel.IsPropertyAvailable(p => p.Id));
117119

120+
// !! MembershipType and IsFavoriteByDefault are now GA !!
121+
118122
// Are other properties still not available: IsFavoriteByDefault is a beta property on a teamchannel, so it should not be available at this point
119-
Assert.IsFalse(team.PrimaryChannel.IsPropertyAvailable(p => p.IsFavoriteByDefault));
123+
Assert.IsTrue(team.PrimaryChannel.IsPropertyAvailable(p => p.IsFavoriteByDefault));
120124

121125
// get the primary channel again, but now explicitely request the beta property IsFavoriteByDefault
122126
await team.PrimaryChannel.GetAsync(p => p.MembershipType, p => p.DisplayName, p => p.IsFavoriteByDefault);
123127
Assert.IsTrue(team.IsPropertyAvailable(p => p.PrimaryChannel));
124128

125129
// Beta property should still be unavailable as we're not allowed to use the beta endpoint
126-
Assert.IsFalse(team.PrimaryChannel.IsPropertyAvailable(p => p.IsFavoriteByDefault));
130+
Assert.IsTrue(team.PrimaryChannel.IsPropertyAvailable(p => p.IsFavoriteByDefault));
127131
// v1 props should be loaded
128132
Assert.IsTrue(team.PrimaryChannel.IsPropertyAvailable(p => p.DisplayName));
129133
}

src/sdk/PnP.Core.Test/Base/MockData/AddExpandoTests/AddListItemViaBatchRest-0-00000.response

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/sdk/PnP.Core.Test/Base/MockData/AddExpandoTests/AddListItemViaBatchRest-0-00002.response

+4-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/sdk/PnP.Core.Test/Base/MockData/AddExpandoTests/AddListItemViaBatchRest-0-00003.response

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/sdk/PnP.Core.Test/Base/MockData/AddExpandoTests/AddListItemViaBatchRest-0-00004.response

+3-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/sdk/PnP.Core.Test/Base/MockData/AddExpandoTests/AddListItemViaBatchRest-0-00005.response

+9-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)