diff --git a/src/ProxyInterfaceSourceGenerator/ProxyInterfaceSourceGenerator.csproj b/src/ProxyInterfaceSourceGenerator/ProxyInterfaceSourceGenerator.csproj
index 35af0d4..02675f4 100644
--- a/src/ProxyInterfaceSourceGenerator/ProxyInterfaceSourceGenerator.csproj
+++ b/src/ProxyInterfaceSourceGenerator/ProxyInterfaceSourceGenerator.csproj
@@ -43,11 +43,7 @@
all
runtime; build; native; contentfiles; analyzers; buildtransitive
-
- all
- runtime; build; native; contentfiles; analyzers; buildtransitive
-
-
+
all
runtime; build; native; contentfiles; analyzers; buildtransitive
diff --git a/tests/ProxyInterfaceSourceGeneratorTests/AkkaTests.cs b/tests/ProxyInterfaceSourceGeneratorTests/AkkaTests.cs
index 452f0ab..9717f27 100644
--- a/tests/ProxyInterfaceSourceGeneratorTests/AkkaTests.cs
+++ b/tests/ProxyInterfaceSourceGeneratorTests/AkkaTests.cs
@@ -1,7 +1,7 @@
+using AwesomeAssertions;
using CSharp.SourceGenerators.Extensions;
using CSharp.SourceGenerators.Extensions.Models;
using CultureAwareTesting.xUnit;
-using FluentAssertions;
using ProxyInterfaceSourceGenerator;
using ProxyInterfaceSourceGeneratorTests.Helpers;
diff --git a/tests/ProxyInterfaceSourceGeneratorTests/Destination/Microsoft.SharePoint.Client.WebProxy.g.cs b/tests/ProxyInterfaceSourceGeneratorTests/Destination/Microsoft.SharePoint.Client.WebProxy.g.cs
index e879a0d..bf9f02a 100644
--- a/tests/ProxyInterfaceSourceGeneratorTests/Destination/Microsoft.SharePoint.Client.WebProxy.g.cs
+++ b/tests/ProxyInterfaceSourceGeneratorTests/Destination/Microsoft.SharePoint.Client.WebProxy.g.cs
@@ -212,6 +212,12 @@ public partial class WebProxy : global::ProxyInterfaceSourceGeneratorTests.Sourc
[Microsoft.SharePoint.Client.RemoteAttribute]
public global::Microsoft.SharePoint.Client.FolderCollection Folders { get => _Instance.Folders; }
+ [Microsoft.SharePoint.Client.RemoteAttribute]
+ public int FooterColorIndexInDarkMode { get => _Instance.FooterColorIndexInDarkMode; set => _Instance.FooterColorIndexInDarkMode = value; }
+
+ [Microsoft.SharePoint.Client.RemoteAttribute]
+ public int FooterColorIndexInLightMode { get => _Instance.FooterColorIndexInLightMode; set => _Instance.FooterColorIndexInLightMode = value; }
+
[Microsoft.SharePoint.Client.RemoteAttribute]
public global::Microsoft.SharePoint.Client.FooterVariantThemeType FooterEmphasis { get => _Instance.FooterEmphasis; set => _Instance.FooterEmphasis = value; }
@@ -224,6 +230,12 @@ public partial class WebProxy : global::ProxyInterfaceSourceGeneratorTests.Sourc
[Microsoft.SharePoint.Client.RemoteAttribute]
public bool HasWebTemplateExtension { get => _Instance.HasWebTemplateExtension; set => _Instance.HasWebTemplateExtension = value; }
+ [Microsoft.SharePoint.Client.RemoteAttribute]
+ public int HeaderColorIndexInDarkMode { get => _Instance.HeaderColorIndexInDarkMode; set => _Instance.HeaderColorIndexInDarkMode = value; }
+
+ [Microsoft.SharePoint.Client.RemoteAttribute]
+ public int HeaderColorIndexInLightMode { get => _Instance.HeaderColorIndexInLightMode; set => _Instance.HeaderColorIndexInLightMode = value; }
+
[Microsoft.SharePoint.Client.RemoteAttribute]
public global::Microsoft.SharePoint.Client.SPVariantThemeType HeaderEmphasis { get => _Instance.HeaderEmphasis; set => _Instance.HeaderEmphasis = value; }
@@ -324,7 +336,7 @@ public partial class WebProxy : global::ProxyInterfaceSourceGeneratorTests.Sourc
public bool PreviewFeaturesEnabled { get => _Instance.PreviewFeaturesEnabled; }
[Microsoft.SharePoint.Client.RemoteAttribute]
- public string PrimaryColor { get => _Instance.PrimaryColor; }
+ public string PrimaryColor { get => _Instance.PrimaryColor; set => _Instance.PrimaryColor = value; }
[Microsoft.SharePoint.Client.RemoteAttribute]
public global::Microsoft.SharePoint.Client.PushNotificationSubscriberCollection PushNotificationSubscribers { get => _Instance.PushNotificationSubscribers; }
@@ -341,6 +353,9 @@ public partial class WebProxy : global::ProxyInterfaceSourceGeneratorTests.Sourc
[Microsoft.SharePoint.Client.RemoteAttribute]
public global::Microsoft.SharePoint.Client.RegionalSettings RegionalSettings { get => _Instance.RegionalSettings; }
+ [Microsoft.SharePoint.Client.RemoteAttribute]
+ public string RelatedHubSiteIds { get => _Instance.RelatedHubSiteIds; }
+
[Microsoft.SharePoint.Client.RemoteAttribute]
public string RequestAccessEmail { get => _Instance.RequestAccessEmail; set => _Instance.RequestAccessEmail = value; }
@@ -404,6 +419,9 @@ public partial class WebProxy : global::ProxyInterfaceSourceGeneratorTests.Sourc
[Microsoft.SharePoint.Client.RemoteAttribute]
public bool TenantTagPolicyEnabled { get => _Instance.TenantTagPolicyEnabled; }
+ [Microsoft.SharePoint.Client.RemoteAttribute]
+ public string ThemeApplicationActionHistory { get => _Instance.ThemeApplicationActionHistory; }
+
[Microsoft.SharePoint.Client.RemoteAttribute]
public string ThemedCssFolderUrl { get => _Instance.ThemedCssFolderUrl; set => _Instance.ThemedCssFolderUrl = value; }
@@ -505,62 +523,6 @@ public void CreateDefaultAssociatedGroups(string userLogin, string userLogin2, s
_Instance.CreateDefaultAssociatedGroups(userLogin_, userLogin2_, groupNameSeed_);
}
- [Microsoft.SharePoint.Client.RemoteAttribute]
- public global::Microsoft.SharePoint.Client.ClientResult CreateOrganizationSharingLink(global::ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientRuntimeContext context, string url, bool isEditLink)
- {
- global::Microsoft.SharePoint.Client.ClientRuntimeContext context_ = MapToInstance(context);
- string url_ = url;
- bool isEditLink_ = isEditLink;
- var result_2070260011 = global::Microsoft.SharePoint.Client.Web.CreateOrganizationSharingLink(context_, url_, isEditLink_);
- return result_2070260011;
- }
-
- [Microsoft.SharePoint.Client.RemoteAttribute]
- public void DestroyOrganizationSharingLink(global::ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientRuntimeContext context, string url, bool isEditLink, bool removeAssociatedSharingLinkGroup)
- {
- global::Microsoft.SharePoint.Client.ClientRuntimeContext context_ = MapToInstance(context);
- string url_ = url;
- bool isEditLink_ = isEditLink;
- bool removeAssociatedSharingLinkGroup_ = removeAssociatedSharingLinkGroup;
- global::Microsoft.SharePoint.Client.Web.DestroyOrganizationSharingLink(context_, url_, isEditLink_, removeAssociatedSharingLinkGroup_);
- }
-
- [Microsoft.SharePoint.Client.RemoteAttribute]
- public global::Microsoft.SharePoint.Client.ClientResult GetSharingLinkKind(global::ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientRuntimeContext context, string fileUrl)
- {
- global::Microsoft.SharePoint.Client.ClientRuntimeContext context_ = MapToInstance(context);
- string fileUrl_ = fileUrl;
- var result_654626020 = global::Microsoft.SharePoint.Client.Web.GetSharingLinkKind(context_, fileUrl_);
- return result_654626020;
- }
-
- [Microsoft.SharePoint.Client.RemoteAttribute]
- public global::Microsoft.SharePoint.Client.ClientResult GetSharingLinkData(string linkUrl)
- {
- string linkUrl_ = linkUrl;
- var result__2107757018 = _Instance.GetSharingLinkData(linkUrl_);
- return result__2107757018;
- }
-
- [Microsoft.SharePoint.Client.RemoteAttribute]
- public global::Microsoft.SharePoint.Client.ClientResult MapToIcon(string fileName, string progId, global::Microsoft.SharePoint.Client.Utilities.IconSize size)
- {
- string fileName_ = fileName;
- string progId_ = progId;
- global::Microsoft.SharePoint.Client.Utilities.IconSize size_ = size;
- var result_384589064 = _Instance.MapToIcon(fileName_, progId_, size_);
- return result_384589064;
- }
-
- [Microsoft.SharePoint.Client.RemoteAttribute]
- public global::Microsoft.SharePoint.Client.ClientResult GetWebUrlFromPageUrl(global::ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientRuntimeContext context, string pageFullUrl)
- {
- global::Microsoft.SharePoint.Client.ClientRuntimeContext context_ = MapToInstance(context);
- string pageFullUrl_ = pageFullUrl;
- var result__907059837 = global::Microsoft.SharePoint.Client.Web.GetWebUrlFromPageUrl(context_, pageFullUrl_);
- return result__907059837;
- }
-
[Microsoft.SharePoint.Client.RemoteAttribute]
public global::Microsoft.SharePoint.Client.PushNotificationSubscriber RegisterPushNotificationSubscriber(global::System.Guid deviceAppInstanceId, string serviceToken)
{
@@ -609,6 +571,15 @@ public void UnregisterPushNotificationSubscriber(global::System.Guid deviceAppIn
return result_1696633571;
}
+ [Microsoft.SharePoint.Client.RemoteAttribute]
+ public global::Microsoft.SharePoint.Client.SPLargeOperation GetListOperation(global::System.Guid listId, global::System.Guid operationId)
+ {
+ global::System.Guid listId_ = listId;
+ global::System.Guid operationId_ = operationId;
+ var result__974677391 = _Instance.GetListOperation(listId_, operationId_);
+ return result__974677391;
+ }
+
[Microsoft.SharePoint.Client.RemoteAttribute]
public global::Microsoft.SharePoint.Client.User GetSiteUserIncludingDeletedByPuid(string puid)
{
@@ -747,6 +718,62 @@ public void DeleteAnonymousLinkForObject(global::ProxyInterfaceSourceGeneratorTe
global::Microsoft.SharePoint.Client.Web.DeleteAnonymousLinkForObject(context_, url_, isEditLink_, removeAssociatedSharingLinkGroup_);
}
+ [Microsoft.SharePoint.Client.RemoteAttribute]
+ public global::Microsoft.SharePoint.Client.ClientResult CreateOrganizationSharingLink(global::ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientRuntimeContext context, string url, bool isEditLink)
+ {
+ global::Microsoft.SharePoint.Client.ClientRuntimeContext context_ = MapToInstance(context);
+ string url_ = url;
+ bool isEditLink_ = isEditLink;
+ var result_2070260011 = global::Microsoft.SharePoint.Client.Web.CreateOrganizationSharingLink(context_, url_, isEditLink_);
+ return result_2070260011;
+ }
+
+ [Microsoft.SharePoint.Client.RemoteAttribute]
+ public void DestroyOrganizationSharingLink(global::ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientRuntimeContext context, string url, bool isEditLink, bool removeAssociatedSharingLinkGroup)
+ {
+ global::Microsoft.SharePoint.Client.ClientRuntimeContext context_ = MapToInstance(context);
+ string url_ = url;
+ bool isEditLink_ = isEditLink;
+ bool removeAssociatedSharingLinkGroup_ = removeAssociatedSharingLinkGroup;
+ global::Microsoft.SharePoint.Client.Web.DestroyOrganizationSharingLink(context_, url_, isEditLink_, removeAssociatedSharingLinkGroup_);
+ }
+
+ [Microsoft.SharePoint.Client.RemoteAttribute]
+ public global::Microsoft.SharePoint.Client.ClientResult GetSharingLinkKind(global::ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientRuntimeContext context, string fileUrl)
+ {
+ global::Microsoft.SharePoint.Client.ClientRuntimeContext context_ = MapToInstance(context);
+ string fileUrl_ = fileUrl;
+ var result_654626020 = global::Microsoft.SharePoint.Client.Web.GetSharingLinkKind(context_, fileUrl_);
+ return result_654626020;
+ }
+
+ [Microsoft.SharePoint.Client.RemoteAttribute]
+ public global::Microsoft.SharePoint.Client.ClientResult GetSharingLinkData(string linkUrl)
+ {
+ string linkUrl_ = linkUrl;
+ var result__2107757018 = _Instance.GetSharingLinkData(linkUrl_);
+ return result__2107757018;
+ }
+
+ [Microsoft.SharePoint.Client.RemoteAttribute]
+ public global::Microsoft.SharePoint.Client.ClientResult MapToIcon(string fileName, string progId, global::Microsoft.SharePoint.Client.Utilities.IconSize size)
+ {
+ string fileName_ = fileName;
+ string progId_ = progId;
+ global::Microsoft.SharePoint.Client.Utilities.IconSize size_ = size;
+ var result_384589064 = _Instance.MapToIcon(fileName_, progId_, size_);
+ return result_384589064;
+ }
+
+ [Microsoft.SharePoint.Client.RemoteAttribute]
+ public global::Microsoft.SharePoint.Client.ClientResult GetWebUrlFromPageUrl(global::ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientRuntimeContext context, string pageFullUrl)
+ {
+ global::Microsoft.SharePoint.Client.ClientRuntimeContext context_ = MapToInstance(context);
+ string pageFullUrl_ = pageFullUrl;
+ var result__907059837 = global::Microsoft.SharePoint.Client.Web.GetWebUrlFromPageUrl(context_, pageFullUrl_);
+ return result__907059837;
+ }
+
[Microsoft.SharePoint.Client.RemoteAttribute]
public global::Microsoft.SharePoint.Client.ListCollection GetLists(global::Microsoft.SharePoint.Client.GetListsParameters getListsParams)
{
@@ -808,6 +835,14 @@ public void DeleteAnonymousLinkForObject(global::ProxyInterfaceSourceGeneratorTe
return result_1483657030;
}
+ [Microsoft.SharePoint.Client.RemoteAttribute]
+ public global::Microsoft.SharePoint.Client.List GetListByTitle(string title)
+ {
+ string title_ = title;
+ var result__905194449 = _Instance.GetListByTitle(title_);
+ return result__905194449;
+ }
+
[Microsoft.SharePoint.Client.RemoteAttribute]
public global::Microsoft.SharePoint.Client.List GetListUsingPath(global::Microsoft.SharePoint.Client.ResourcePath path)
{
@@ -879,72 +914,6 @@ public void DeleteAnonymousLinkForObject(global::ProxyInterfaceSourceGeneratorTe
return result_127789125;
}
- [Microsoft.SharePoint.Client.RemoteAttribute]
- public void Update()
- {
- _Instance.Update();
- }
-
- [Microsoft.SharePoint.Client.RemoteAttribute]
- public global::Microsoft.SharePoint.Client.View GetViewFromUrl(string listUrl)
- {
- string listUrl_ = listUrl;
- var result_1074039380 = _Instance.GetViewFromUrl(listUrl_);
- return result_1074039380;
- }
-
- [Microsoft.SharePoint.Client.RemoteAttribute]
- public global::Microsoft.SharePoint.Client.View GetViewFromPath(global::Microsoft.SharePoint.Client.ResourcePath listPath)
- {
- global::Microsoft.SharePoint.Client.ResourcePath listPath_ = listPath;
- var result_1126862484 = _Instance.GetViewFromPath(listPath_);
- return result_1126862484;
- }
-
- [Microsoft.SharePoint.Client.RemoteAttribute]
- public global::Microsoft.SharePoint.Client.File GetFileByServerRelativeUrl(string serverRelativeUrl)
- {
- string serverRelativeUrl_ = serverRelativeUrl;
- var result__979182843 = _Instance.GetFileByServerRelativeUrl(serverRelativeUrl_);
- return result__979182843;
- }
-
- [Microsoft.SharePoint.Client.RemoteAttribute]
- public global::Microsoft.SharePoint.Client.File GetFileByServerRelativePath(global::Microsoft.SharePoint.Client.ResourcePath serverRelativePath)
- {
- global::Microsoft.SharePoint.Client.ResourcePath serverRelativePath_ = serverRelativePath;
- var result_1456830503 = _Instance.GetFileByServerRelativePath(serverRelativePath_);
- return result_1456830503;
- }
-
- [Microsoft.SharePoint.Client.RemoteAttribute]
- public global::System.Collections.Generic.IList GetDocumentLibraries(global::ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientRuntimeContext context, string webFullUrl)
- {
- global::Microsoft.SharePoint.Client.ClientRuntimeContext context_ = MapToInstance(context);
- string webFullUrl_ = webFullUrl;
- var result_2078170246 = global::Microsoft.SharePoint.Client.Web.GetDocumentLibraries(context_, webFullUrl_);
- return result_2078170246;
- }
-
- [Microsoft.SharePoint.Client.RemoteAttribute]
- public global::System.Collections.Generic.IList GetDocumentAndMediaLibraries(global::ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientRuntimeContext context, string webFullUrl, bool includePageLibraries)
- {
- global::Microsoft.SharePoint.Client.ClientRuntimeContext context_ = MapToInstance(context);
- string webFullUrl_ = webFullUrl;
- bool includePageLibraries_ = includePageLibraries;
- var result__431075153 = global::Microsoft.SharePoint.Client.Web.GetDocumentAndMediaLibraries(context_, webFullUrl_, includePageLibraries_);
- return result__431075153;
- }
-
- [Microsoft.SharePoint.Client.RemoteAttribute]
- public global::Microsoft.SharePoint.Client.ClientResult DefaultDocumentLibraryUrl(global::ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientRuntimeContext context, string webUrl)
- {
- global::Microsoft.SharePoint.Client.ClientRuntimeContext context_ = MapToInstance(context);
- string webUrl_ = webUrl;
- var result_1125717726 = global::Microsoft.SharePoint.Client.Web.DefaultDocumentLibraryUrl(context_, webUrl_);
- return result_1125717726;
- }
-
[Microsoft.SharePoint.Client.RemoteAttribute]
public global::Microsoft.SharePoint.Client.List DefaultDocumentLibrary()
{
@@ -1001,6 +970,14 @@ public void Update()
return result_1184208158;
}
+ [Microsoft.SharePoint.Client.RemoteAttribute]
+ public global::Microsoft.SharePoint.Client.File GetFileByStreamFrameUrl(string streamFrameUrl)
+ {
+ string streamFrameUrl_ = streamFrameUrl;
+ var result__1134663791 = _Instance.GetFileByStreamFrameUrl(streamFrameUrl_);
+ return result__1134663791;
+ }
+
[Microsoft.SharePoint.Client.RemoteAttribute]
public global::Microsoft.SharePoint.Client.File GetFileByUrl(string fileUrl)
{
@@ -1025,6 +1002,30 @@ public void Update()
return result__1812606997;
}
+ [Microsoft.SharePoint.Client.RemoteAttribute]
+ public global::Microsoft.SharePoint.Client.ClientResult CreateSitePage(string pageMetaData)
+ {
+ string pageMetaData_ = pageMetaData;
+ var result_823342318 = _Instance.CreateSitePage(pageMetaData_);
+ return result_823342318;
+ }
+
+ [Microsoft.SharePoint.Client.RemoteAttribute]
+ public global::Microsoft.SharePoint.Client.ClientResult GetSitePageCopyToStatus(global::System.Guid workItemId)
+ {
+ global::System.Guid workItemId_ = workItemId;
+ var result_1848487460 = _Instance.GetSitePageCopyToStatus(workItemId_);
+ return result_1848487460;
+ }
+
+ [Microsoft.SharePoint.Client.RemoteAttribute]
+ public global::Microsoft.SharePoint.Client.ClientResult GetSitePageMoveStatus(global::System.Guid workItemId)
+ {
+ global::System.Guid workItemId_ = workItemId;
+ var result__2073481437 = _Instance.GetSitePageMoveStatus(workItemId_);
+ return result__2073481437;
+ }
+
[Microsoft.SharePoint.Client.RemoteAttribute]
public void ApplyWebTemplate(string webTemplate)
{
@@ -1038,6 +1039,78 @@ public void DeleteObject()
_Instance.DeleteObject();
}
+ [Microsoft.SharePoint.Client.RemoteAttribute]
+ public void Recycle()
+ {
+ _Instance.Recycle();
+ }
+
+ [Microsoft.SharePoint.Client.RemoteAttribute]
+ public void Update()
+ {
+ _Instance.Update();
+ }
+
+ [Microsoft.SharePoint.Client.RemoteAttribute]
+ public global::Microsoft.SharePoint.Client.View GetViewFromUrl(string listUrl)
+ {
+ string listUrl_ = listUrl;
+ var result_1074039380 = _Instance.GetViewFromUrl(listUrl_);
+ return result_1074039380;
+ }
+
+ [Microsoft.SharePoint.Client.RemoteAttribute]
+ public global::Microsoft.SharePoint.Client.View GetViewFromPath(global::Microsoft.SharePoint.Client.ResourcePath listPath)
+ {
+ global::Microsoft.SharePoint.Client.ResourcePath listPath_ = listPath;
+ var result_1126862484 = _Instance.GetViewFromPath(listPath_);
+ return result_1126862484;
+ }
+
+ [Microsoft.SharePoint.Client.RemoteAttribute]
+ public global::Microsoft.SharePoint.Client.File GetFileByServerRelativeUrl(string serverRelativeUrl)
+ {
+ string serverRelativeUrl_ = serverRelativeUrl;
+ var result__979182843 = _Instance.GetFileByServerRelativeUrl(serverRelativeUrl_);
+ return result__979182843;
+ }
+
+ [Microsoft.SharePoint.Client.RemoteAttribute]
+ public global::Microsoft.SharePoint.Client.File GetFileByServerRelativePath(global::Microsoft.SharePoint.Client.ResourcePath serverRelativePath)
+ {
+ global::Microsoft.SharePoint.Client.ResourcePath serverRelativePath_ = serverRelativePath;
+ var result_1456830503 = _Instance.GetFileByServerRelativePath(serverRelativePath_);
+ return result_1456830503;
+ }
+
+ [Microsoft.SharePoint.Client.RemoteAttribute]
+ public global::System.Collections.Generic.IList GetDocumentLibraries(global::ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientRuntimeContext context, string webFullUrl)
+ {
+ global::Microsoft.SharePoint.Client.ClientRuntimeContext context_ = MapToInstance(context);
+ string webFullUrl_ = webFullUrl;
+ var result_2078170246 = global::Microsoft.SharePoint.Client.Web.GetDocumentLibraries(context_, webFullUrl_);
+ return result_2078170246;
+ }
+
+ [Microsoft.SharePoint.Client.RemoteAttribute]
+ public global::System.Collections.Generic.IList GetDocumentAndMediaLibraries(global::ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientRuntimeContext context, string webFullUrl, bool includePageLibraries)
+ {
+ global::Microsoft.SharePoint.Client.ClientRuntimeContext context_ = MapToInstance(context);
+ string webFullUrl_ = webFullUrl;
+ bool includePageLibraries_ = includePageLibraries;
+ var result__431075153 = global::Microsoft.SharePoint.Client.Web.GetDocumentAndMediaLibraries(context_, webFullUrl_, includePageLibraries_);
+ return result__431075153;
+ }
+
+ [Microsoft.SharePoint.Client.RemoteAttribute]
+ public global::Microsoft.SharePoint.Client.ClientResult DefaultDocumentLibraryUrl(global::ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientRuntimeContext context, string webUrl)
+ {
+ global::Microsoft.SharePoint.Client.ClientRuntimeContext context_ = MapToInstance(context);
+ string webUrl_ = webUrl;
+ var result_1125717726 = global::Microsoft.SharePoint.Client.Web.DefaultDocumentLibraryUrl(context_, webUrl_);
+ return result_1125717726;
+ }
+
[Microsoft.SharePoint.Client.RemoteAttribute]
public global::Microsoft.SharePoint.Client.ClientResult PageContextInfo(bool includeODBSettings, bool emitNavigationInfo)
{
diff --git a/tests/ProxyInterfaceSourceGeneratorTests/Destination/ProxyInterfaceSourceGeneratorTests.Source.IPerson.g.cs b/tests/ProxyInterfaceSourceGeneratorTests/Destination/ProxyInterfaceSourceGeneratorTests.Source.IPerson.g.cs
index 46aa62b..fc938f6 100644
--- a/tests/ProxyInterfaceSourceGeneratorTests/Destination/ProxyInterfaceSourceGeneratorTests.Source.IPerson.g.cs
+++ b/tests/ProxyInterfaceSourceGeneratorTests/Destination/ProxyInterfaceSourceGeneratorTests.Source.IPerson.g.cs
@@ -20,12 +20,10 @@ public partial interface IPerson
global::System.Collections.Generic.List Humans { get; set; }
- [System.ComponentModel.DataAnnotations.DisplayAttribute(Prompt = "MyStruct Indexer")]
global::ProxyInterfaceSourceGeneratorTests.Source.MyStruct this[int i] { get; set; }
global::ProxyInterfaceSourceGeneratorTests.Source.MyStruct this[int i, string s] { get; set; }
- [System.ComponentModel.DataAnnotations.DisplayAttribute(ResourceType = typeof(System.Threading.PeriodicTimer))]
string Name { get; set; }
string? StringNullable { get; set; }
@@ -66,7 +64,6 @@ public partial interface IPerson
global::System.Threading.Tasks.Task Method2Async();
- [System.ComponentModel.DataAnnotations.DisplayAttribute(Name = "M3")]
global::System.Threading.Tasks.Task Method3Async();
void CreateInvokeHttpClient(int i = 5, string? appId = null, global::System.Collections.Generic.IReadOnlyDictionary? metadata = null, global::System.Threading.CancellationToken token = default(System.Threading.CancellationToken));
diff --git a/tests/ProxyInterfaceSourceGeneratorTests/Destination/ProxyInterfaceSourceGeneratorTests.Source.PersonProxy.g.cs b/tests/ProxyInterfaceSourceGeneratorTests/Destination/ProxyInterfaceSourceGeneratorTests.Source.PersonProxy.g.cs
index 493104d..921d0f4 100644
--- a/tests/ProxyInterfaceSourceGeneratorTests/Destination/ProxyInterfaceSourceGeneratorTests.Source.PersonProxy.g.cs
+++ b/tests/ProxyInterfaceSourceGeneratorTests/Destination/ProxyInterfaceSourceGeneratorTests.Source.PersonProxy.g.cs
@@ -59,12 +59,10 @@ static PersonProxy()
public global::System.Collections.Generic.List Humans { get => MapToInterface(_Instance.Humans); set => _Instance.Humans = MapToInstance(value); }
- [System.ComponentModel.DataAnnotations.DisplayAttribute(Prompt = "MyStruct Indexer")]
public global::ProxyInterfaceSourceGeneratorTests.Source.MyStruct this[int i] { get => _Instance[i]; set => _Instance[i] = value; }
public global::ProxyInterfaceSourceGeneratorTests.Source.MyStruct this[int i, string s] { get => _Instance[i, s]; set => _Instance[i, s] = value; }
- [System.ComponentModel.DataAnnotations.DisplayAttribute(ResourceType = typeof(System.Threading.PeriodicTimer))]
public string Name { get => _Instance.Name; set => _Instance.Name = value; }
public string? StringNullable { get => _Instance.StringNullable; set => _Instance.StringNullable = value!; }
@@ -186,7 +184,6 @@ public void In_Out_Ref1(in int a, out int b, ref int c)
return result__57677169;
}
- [System.ComponentModel.DataAnnotations.DisplayAttribute(Name = "M3")]
public global::System.Threading.Tasks.Task Method3Async()
{
var result__57684656 = _Instance.Method3Async();
diff --git a/tests/ProxyInterfaceSourceGeneratorTests/Destination/ProxyInterfaceSourceGeneratorTests.Source.PnP.IWeb.g.cs b/tests/ProxyInterfaceSourceGeneratorTests/Destination/ProxyInterfaceSourceGeneratorTests.Source.PnP.IWeb.g.cs
index d393967..b7aee32 100644
--- a/tests/ProxyInterfaceSourceGeneratorTests/Destination/ProxyInterfaceSourceGeneratorTests.Source.PnP.IWeb.g.cs
+++ b/tests/ProxyInterfaceSourceGeneratorTests/Destination/ProxyInterfaceSourceGeneratorTests.Source.PnP.IWeb.g.cs
@@ -169,6 +169,12 @@ public partial interface IWeb
[Microsoft.SharePoint.Client.RemoteAttribute]
global::Microsoft.SharePoint.Client.FolderCollection Folders { get; }
+ [Microsoft.SharePoint.Client.RemoteAttribute]
+ int FooterColorIndexInDarkMode { get; set; }
+
+ [Microsoft.SharePoint.Client.RemoteAttribute]
+ int FooterColorIndexInLightMode { get; set; }
+
[Microsoft.SharePoint.Client.RemoteAttribute]
global::Microsoft.SharePoint.Client.FooterVariantThemeType FooterEmphasis { get; set; }
@@ -181,6 +187,12 @@ public partial interface IWeb
[Microsoft.SharePoint.Client.RemoteAttribute]
bool HasWebTemplateExtension { get; set; }
+ [Microsoft.SharePoint.Client.RemoteAttribute]
+ int HeaderColorIndexInDarkMode { get; set; }
+
+ [Microsoft.SharePoint.Client.RemoteAttribute]
+ int HeaderColorIndexInLightMode { get; set; }
+
[Microsoft.SharePoint.Client.RemoteAttribute]
global::Microsoft.SharePoint.Client.SPVariantThemeType HeaderEmphasis { get; set; }
@@ -281,7 +293,7 @@ public partial interface IWeb
bool PreviewFeaturesEnabled { get; }
[Microsoft.SharePoint.Client.RemoteAttribute]
- string PrimaryColor { get; }
+ string PrimaryColor { get; set; }
[Microsoft.SharePoint.Client.RemoteAttribute]
global::Microsoft.SharePoint.Client.PushNotificationSubscriberCollection PushNotificationSubscribers { get; }
@@ -298,6 +310,9 @@ public partial interface IWeb
[Microsoft.SharePoint.Client.RemoteAttribute]
global::Microsoft.SharePoint.Client.RegionalSettings RegionalSettings { get; }
+ [Microsoft.SharePoint.Client.RemoteAttribute]
+ string RelatedHubSiteIds { get; }
+
[Microsoft.SharePoint.Client.RemoteAttribute]
string RequestAccessEmail { get; set; }
@@ -361,6 +376,9 @@ public partial interface IWeb
[Microsoft.SharePoint.Client.RemoteAttribute]
bool TenantTagPolicyEnabled { get; }
+ [Microsoft.SharePoint.Client.RemoteAttribute]
+ string ThemeApplicationActionHistory { get; }
+
[Microsoft.SharePoint.Client.RemoteAttribute]
string ThemedCssFolderUrl { get; set; }
@@ -434,24 +452,6 @@ public partial interface IWeb
[Microsoft.SharePoint.Client.RemoteAttribute]
void CreateDefaultAssociatedGroups(string userLogin, string userLogin2, string groupNameSeed);
- [Microsoft.SharePoint.Client.RemoteAttribute]
- global::Microsoft.SharePoint.Client.ClientResult CreateOrganizationSharingLink(global::ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientRuntimeContext context, string url, bool isEditLink);
-
- [Microsoft.SharePoint.Client.RemoteAttribute]
- void DestroyOrganizationSharingLink(global::ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientRuntimeContext context, string url, bool isEditLink, bool removeAssociatedSharingLinkGroup);
-
- [Microsoft.SharePoint.Client.RemoteAttribute]
- global::Microsoft.SharePoint.Client.ClientResult GetSharingLinkKind(global::ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientRuntimeContext context, string fileUrl);
-
- [Microsoft.SharePoint.Client.RemoteAttribute]
- global::Microsoft.SharePoint.Client.ClientResult GetSharingLinkData(string linkUrl);
-
- [Microsoft.SharePoint.Client.RemoteAttribute]
- global::Microsoft.SharePoint.Client.ClientResult MapToIcon(string fileName, string progId, global::Microsoft.SharePoint.Client.Utilities.IconSize size);
-
- [Microsoft.SharePoint.Client.RemoteAttribute]
- global::Microsoft.SharePoint.Client.ClientResult GetWebUrlFromPageUrl(global::ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientRuntimeContext context, string pageFullUrl);
-
[Microsoft.SharePoint.Client.RemoteAttribute]
global::Microsoft.SharePoint.Client.PushNotificationSubscriber RegisterPushNotificationSubscriber(global::System.Guid deviceAppInstanceId, string serviceToken);
@@ -470,6 +470,9 @@ public partial interface IWeb
[Microsoft.SharePoint.Client.RemoteAttribute]
global::Microsoft.SharePoint.Client.PushNotificationSubscriber GetPushNotificationSubscriber(global::System.Guid deviceAppInstanceId);
+ [Microsoft.SharePoint.Client.RemoteAttribute]
+ global::Microsoft.SharePoint.Client.SPLargeOperation GetListOperation(global::System.Guid listId, global::System.Guid operationId);
+
[Microsoft.SharePoint.Client.RemoteAttribute]
global::Microsoft.SharePoint.Client.User GetSiteUserIncludingDeletedByPuid(string puid);
@@ -512,6 +515,24 @@ public partial interface IWeb
[Microsoft.SharePoint.Client.RemoteAttribute]
void DeleteAnonymousLinkForObject(global::ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientRuntimeContext context, string url, bool isEditLink, bool removeAssociatedSharingLinkGroup);
+ [Microsoft.SharePoint.Client.RemoteAttribute]
+ global::Microsoft.SharePoint.Client.ClientResult CreateOrganizationSharingLink(global::ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientRuntimeContext context, string url, bool isEditLink);
+
+ [Microsoft.SharePoint.Client.RemoteAttribute]
+ void DestroyOrganizationSharingLink(global::ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientRuntimeContext context, string url, bool isEditLink, bool removeAssociatedSharingLinkGroup);
+
+ [Microsoft.SharePoint.Client.RemoteAttribute]
+ global::Microsoft.SharePoint.Client.ClientResult GetSharingLinkKind(global::ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientRuntimeContext context, string fileUrl);
+
+ [Microsoft.SharePoint.Client.RemoteAttribute]
+ global::Microsoft.SharePoint.Client.ClientResult GetSharingLinkData(string linkUrl);
+
+ [Microsoft.SharePoint.Client.RemoteAttribute]
+ global::Microsoft.SharePoint.Client.ClientResult MapToIcon(string fileName, string progId, global::Microsoft.SharePoint.Client.Utilities.IconSize size);
+
+ [Microsoft.SharePoint.Client.RemoteAttribute]
+ global::Microsoft.SharePoint.Client.ClientResult GetWebUrlFromPageUrl(global::ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientRuntimeContext context, string pageFullUrl);
+
[Microsoft.SharePoint.Client.RemoteAttribute]
global::Microsoft.SharePoint.Client.ListCollection GetLists(global::Microsoft.SharePoint.Client.GetListsParameters getListsParams);
@@ -533,6 +554,9 @@ public partial interface IWeb
[Microsoft.SharePoint.Client.RemoteAttribute]
global::Microsoft.SharePoint.Client.List GetList(string strUrl);
+ [Microsoft.SharePoint.Client.RemoteAttribute]
+ global::Microsoft.SharePoint.Client.List GetListByTitle(string title);
+
[Microsoft.SharePoint.Client.RemoteAttribute]
global::Microsoft.SharePoint.Client.List GetListUsingPath(global::Microsoft.SharePoint.Client.ResourcePath path);
@@ -561,64 +585,79 @@ public partial interface IWeb
global::Microsoft.SharePoint.Client.ClientResult GetSPAppContextAsStream();
[Microsoft.SharePoint.Client.RemoteAttribute]
- void Update();
+ global::Microsoft.SharePoint.Client.List DefaultDocumentLibrary();
[Microsoft.SharePoint.Client.RemoteAttribute]
- global::Microsoft.SharePoint.Client.View GetViewFromUrl(string listUrl);
+ global::Microsoft.SharePoint.Client.File GetFileById(global::System.Guid uniqueId);
[Microsoft.SharePoint.Client.RemoteAttribute]
- global::Microsoft.SharePoint.Client.View GetViewFromPath(global::Microsoft.SharePoint.Client.ResourcePath listPath);
+ global::Microsoft.SharePoint.Client.Folder GetFolderById(global::System.Guid uniqueId);
[Microsoft.SharePoint.Client.RemoteAttribute]
- global::Microsoft.SharePoint.Client.File GetFileByServerRelativeUrl(string serverRelativeUrl);
+ global::Microsoft.SharePoint.Client.File GetFileByLinkingUrl(string linkingUrl);
[Microsoft.SharePoint.Client.RemoteAttribute]
- global::Microsoft.SharePoint.Client.File GetFileByServerRelativePath(global::Microsoft.SharePoint.Client.ResourcePath serverRelativePath);
+ global::Microsoft.SharePoint.Client.File GetFileByGuestUrl(string guestUrl);
[Microsoft.SharePoint.Client.RemoteAttribute]
- global::System.Collections.Generic.IList GetDocumentLibraries(global::ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientRuntimeContext context, string webFullUrl);
+ global::Microsoft.SharePoint.Client.File GetFileByGuestUrlEnsureAccess(string guestUrl, bool ensureAccess);
[Microsoft.SharePoint.Client.RemoteAttribute]
- global::System.Collections.Generic.IList GetDocumentAndMediaLibraries(global::ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientRuntimeContext context, string webFullUrl, bool includePageLibraries);
+ global::Microsoft.SharePoint.Client.File GetFileByWOPIFrameUrl(string wopiFrameUrl);
[Microsoft.SharePoint.Client.RemoteAttribute]
- global::Microsoft.SharePoint.Client.ClientResult DefaultDocumentLibraryUrl(global::ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientRuntimeContext context, string webUrl);
+ global::Microsoft.SharePoint.Client.File GetFileByStreamFrameUrl(string streamFrameUrl);
[Microsoft.SharePoint.Client.RemoteAttribute]
- global::Microsoft.SharePoint.Client.List DefaultDocumentLibrary();
+ global::Microsoft.SharePoint.Client.File GetFileByUrl(string fileUrl);
[Microsoft.SharePoint.Client.RemoteAttribute]
- global::Microsoft.SharePoint.Client.File GetFileById(global::System.Guid uniqueId);
+ global::Microsoft.SharePoint.Client.Folder GetFolderByServerRelativeUrl(string serverRelativeUrl);
[Microsoft.SharePoint.Client.RemoteAttribute]
- global::Microsoft.SharePoint.Client.Folder GetFolderById(global::System.Guid uniqueId);
+ global::Microsoft.SharePoint.Client.Folder GetFolderByServerRelativePath(global::Microsoft.SharePoint.Client.ResourcePath serverRelativePath);
[Microsoft.SharePoint.Client.RemoteAttribute]
- global::Microsoft.SharePoint.Client.File GetFileByLinkingUrl(string linkingUrl);
+ global::Microsoft.SharePoint.Client.ClientResult CreateSitePage(string pageMetaData);
[Microsoft.SharePoint.Client.RemoteAttribute]
- global::Microsoft.SharePoint.Client.File GetFileByGuestUrl(string guestUrl);
+ global::Microsoft.SharePoint.Client.ClientResult GetSitePageCopyToStatus(global::System.Guid workItemId);
[Microsoft.SharePoint.Client.RemoteAttribute]
- global::Microsoft.SharePoint.Client.File GetFileByGuestUrlEnsureAccess(string guestUrl, bool ensureAccess);
+ global::Microsoft.SharePoint.Client.ClientResult GetSitePageMoveStatus(global::System.Guid workItemId);
[Microsoft.SharePoint.Client.RemoteAttribute]
- global::Microsoft.SharePoint.Client.File GetFileByWOPIFrameUrl(string wopiFrameUrl);
+ void ApplyWebTemplate(string webTemplate);
[Microsoft.SharePoint.Client.RemoteAttribute]
- global::Microsoft.SharePoint.Client.File GetFileByUrl(string fileUrl);
+ void DeleteObject();
[Microsoft.SharePoint.Client.RemoteAttribute]
- global::Microsoft.SharePoint.Client.Folder GetFolderByServerRelativeUrl(string serverRelativeUrl);
+ void Recycle();
[Microsoft.SharePoint.Client.RemoteAttribute]
- global::Microsoft.SharePoint.Client.Folder GetFolderByServerRelativePath(global::Microsoft.SharePoint.Client.ResourcePath serverRelativePath);
+ void Update();
[Microsoft.SharePoint.Client.RemoteAttribute]
- void ApplyWebTemplate(string webTemplate);
+ global::Microsoft.SharePoint.Client.View GetViewFromUrl(string listUrl);
[Microsoft.SharePoint.Client.RemoteAttribute]
- void DeleteObject();
+ global::Microsoft.SharePoint.Client.View GetViewFromPath(global::Microsoft.SharePoint.Client.ResourcePath listPath);
+
+ [Microsoft.SharePoint.Client.RemoteAttribute]
+ global::Microsoft.SharePoint.Client.File GetFileByServerRelativeUrl(string serverRelativeUrl);
+
+ [Microsoft.SharePoint.Client.RemoteAttribute]
+ global::Microsoft.SharePoint.Client.File GetFileByServerRelativePath(global::Microsoft.SharePoint.Client.ResourcePath serverRelativePath);
+
+ [Microsoft.SharePoint.Client.RemoteAttribute]
+ global::System.Collections.Generic.IList GetDocumentLibraries(global::ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientRuntimeContext context, string webFullUrl);
+
+ [Microsoft.SharePoint.Client.RemoteAttribute]
+ global::System.Collections.Generic.IList GetDocumentAndMediaLibraries(global::ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientRuntimeContext context, string webFullUrl, bool includePageLibraries);
+
+ [Microsoft.SharePoint.Client.RemoteAttribute]
+ global::Microsoft.SharePoint.Client.ClientResult DefaultDocumentLibraryUrl(global::ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientRuntimeContext context, string webUrl);
[Microsoft.SharePoint.Client.RemoteAttribute]
global::Microsoft.SharePoint.Client.ClientResult PageContextInfo(bool includeODBSettings, bool emitNavigationInfo);
diff --git a/tests/ProxyInterfaceSourceGeneratorTests/InheritedInterfaceTests.cs b/tests/ProxyInterfaceSourceGeneratorTests/InheritedInterfaceTests.cs
index 8fa6397..c7ad9fc 100644
--- a/tests/ProxyInterfaceSourceGeneratorTests/InheritedInterfaceTests.cs
+++ b/tests/ProxyInterfaceSourceGeneratorTests/InheritedInterfaceTests.cs
@@ -1,6 +1,6 @@
+using AwesomeAssertions;
using CSharp.SourceGenerators.Extensions;
using CSharp.SourceGenerators.Extensions.Models;
-using FluentAssertions;
using Microsoft.CodeAnalysis.CSharp.Syntax;
using ProxyInterfaceSourceGenerator;
using ProxyInterfaceSourceGeneratorTests.Helpers;
diff --git a/tests/ProxyInterfaceSourceGeneratorTests/PnPTests.cs b/tests/ProxyInterfaceSourceGeneratorTests/PnPTests.cs
index a5540e8..160b065 100644
--- a/tests/ProxyInterfaceSourceGeneratorTests/PnPTests.cs
+++ b/tests/ProxyInterfaceSourceGeneratorTests/PnPTests.cs
@@ -1,6 +1,6 @@
+using AwesomeAssertions;
using CSharp.SourceGenerators.Extensions;
using CSharp.SourceGenerators.Extensions.Models;
-using FluentAssertions;
using ProxyInterfaceSourceGenerator;
using ProxyInterfaceSourceGeneratorTests.Helpers;
diff --git a/tests/ProxyInterfaceSourceGeneratorTests/ProxyInterfaceSourceGeneratorTest.cs b/tests/ProxyInterfaceSourceGeneratorTests/ProxyInterfaceSourceGeneratorTest.cs
index 38e956b..a19092f 100644
--- a/tests/ProxyInterfaceSourceGeneratorTests/ProxyInterfaceSourceGeneratorTest.cs
+++ b/tests/ProxyInterfaceSourceGeneratorTests/ProxyInterfaceSourceGeneratorTest.cs
@@ -1,7 +1,7 @@
using System.Runtime.CompilerServices;
+using AwesomeAssertions;
using CSharp.SourceGenerators.Extensions;
using CSharp.SourceGenerators.Extensions.Models;
-using FluentAssertions;
using Microsoft.CodeAnalysis.CSharp;
using Microsoft.CodeAnalysis.CSharp.Syntax;
using ProxyInterfaceSourceGenerator;
@@ -382,40 +382,6 @@ public void GenerateFiles_When_NoSetterOrGetter_Should_GenerateCorrectFiles()
if (Write) File.WriteAllText(destinationFilename, builder.Text);
builder.Text.Should().Be(File.ReadAllText(destinationFilename));
}
-
- // Load the file content
- string code = File.ReadAllText(Path.Combine(_basePath, $"Destination/ProxyInterfaceSourceGeneratorTests.Source.NoSetterOrGetterProxy.g.cs"));
-
- // Parse syntax tree
- var tree = CSharpSyntaxTree.ParseText(code);
- var root = tree.GetRoot();
-
- // Find all method declarations
- var methodDeclarations = root.DescendantNodes()
- .OfType()
- .ToArray();
-
- // Find all method invocations
- var methodInvocations = root.DescendantNodes()
- .OfType()
- .Select(inv => inv.Expression.ToString())
- .ToArray();
-
- // Analyze
- Console.WriteLine("Unused private static methods:");
- foreach (var method in methodDeclarations)
- {
- bool isPrivateStatic = method.Modifiers.Any(m => m.Kind() == SyntaxKind.PrivateKeyword) && method.Modifiers.Any(m => m.Kind() == SyntaxKind.StaticKeyword);
-
- if (isPrivateStatic && !methodInvocations.Any(call => call.Contains(method.Identifier.Text)))
- {
- Console.WriteLine($"- {method.Identifier.Text}");
-
- code = code.Replace(method.ToFullString(), string.Empty);
- }
- }
-
- int x = 0;
}
[Fact]
diff --git a/tests/ProxyInterfaceSourceGeneratorTests/ProxyInterfaceSourceGeneratorTests.csproj b/tests/ProxyInterfaceSourceGeneratorTests/ProxyInterfaceSourceGeneratorTests.csproj
index e3cb8b9..587e6f8 100644
--- a/tests/ProxyInterfaceSourceGeneratorTests/ProxyInterfaceSourceGeneratorTests.csproj
+++ b/tests/ProxyInterfaceSourceGeneratorTests/ProxyInterfaceSourceGeneratorTests.csproj
@@ -1,4 +1,4 @@
-
+
net8.0
@@ -10,22 +10,21 @@
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
-
-
+
+
runtime; build; native; contentfiles; analyzers; buildtransitive
all
-
+
runtime; build; native; contentfiles; analyzers; buildtransitive
all
@@ -36,7 +35,7 @@
-
+
\ No newline at end of file