Skip to content

Commit

Permalink
Refactors tests after breaking change
Browse files Browse the repository at this point in the history
  • Loading branch information
andrueastman committed Feb 28, 2023
1 parent 8ab8ac2 commit 6c938d4
Show file tree
Hide file tree
Showing 18 changed files with 175 additions and 152 deletions.
18 changes: 18 additions & 0 deletions Microsoft.Graph.Beta.sln
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ VisualStudioVersion = 17.1.31903.286
MinimumVisualStudioVersion = 10.0.40219.1
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.Graph.Beta", "src\Microsoft.Graph\Microsoft.Graph.Beta.csproj", "{660FA73B-987D-4085-A230-1B04F7EAEFBC}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.Graph.DotnetCore.Test", "tests\Microsoft.Graph.DotnetCore.Test\Microsoft.Graph.DotnetCore.Test.csproj", "{15DE269F-3B76-461C-9954-EC2A8FF9B9E8}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand Down Expand Up @@ -32,6 +34,22 @@ Global
{660FA73B-987D-4085-A230-1B04F7EAEFBC}.Release|x64.Build.0 = Release|Any CPU
{660FA73B-987D-4085-A230-1B04F7EAEFBC}.Release|x86.ActiveCfg = Release|Any CPU
{660FA73B-987D-4085-A230-1B04F7EAEFBC}.Release|x86.Build.0 = Release|Any CPU
{15DE269F-3B76-461C-9954-EC2A8FF9B9E8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{15DE269F-3B76-461C-9954-EC2A8FF9B9E8}.Debug|Any CPU.Build.0 = Debug|Any CPU
{15DE269F-3B76-461C-9954-EC2A8FF9B9E8}.Debug|ARM.ActiveCfg = Debug|Any CPU
{15DE269F-3B76-461C-9954-EC2A8FF9B9E8}.Debug|ARM.Build.0 = Debug|Any CPU
{15DE269F-3B76-461C-9954-EC2A8FF9B9E8}.Debug|x64.ActiveCfg = Debug|Any CPU
{15DE269F-3B76-461C-9954-EC2A8FF9B9E8}.Debug|x64.Build.0 = Debug|Any CPU
{15DE269F-3B76-461C-9954-EC2A8FF9B9E8}.Debug|x86.ActiveCfg = Debug|Any CPU
{15DE269F-3B76-461C-9954-EC2A8FF9B9E8}.Debug|x86.Build.0 = Debug|Any CPU
{15DE269F-3B76-461C-9954-EC2A8FF9B9E8}.Release|Any CPU.ActiveCfg = Release|Any CPU
{15DE269F-3B76-461C-9954-EC2A8FF9B9E8}.Release|Any CPU.Build.0 = Release|Any CPU
{15DE269F-3B76-461C-9954-EC2A8FF9B9E8}.Release|ARM.ActiveCfg = Release|Any CPU
{15DE269F-3B76-461C-9954-EC2A8FF9B9E8}.Release|ARM.Build.0 = Release|Any CPU
{15DE269F-3B76-461C-9954-EC2A8FF9B9E8}.Release|x64.ActiveCfg = Release|Any CPU
{15DE269F-3B76-461C-9954-EC2A8FF9B9E8}.Release|x64.Build.0 = Release|Any CPU
{15DE269F-3B76-461C-9954-EC2A8FF9B9E8}.Release|x86.ActiveCfg = Release|Any CPU
{15DE269F-3B76-461C-9954-EC2A8FF9B9E8}.Release|x86.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down
70 changes: 34 additions & 36 deletions src/Microsoft.Graph/Extensions/DriveItemRequestBuilderExtensions.cs
Original file line number Diff line number Diff line change
@@ -1,22 +1,21 @@
/*
using System;
using System;
using System.Linq;
using System.Reflection;
using Microsoft.Graph.Beta.Drives.Item.Items.Item.Analytics;
using Microsoft.Graph.Beta.Drives.Item.Items.Item.Children;
using Microsoft.Graph.Beta.Drives.Item.Items.Item.Content;
using Microsoft.Graph.Beta.Drives.Item.Items.Item.ListItem;
using Microsoft.Graph.Beta.Drives.Item.Items.Item.MicrosoftGraphCheckin;
using Microsoft.Graph.Beta.Drives.Item.Items.Item.MicrosoftGraphCheckout;
using Microsoft.Graph.Beta.Drives.Item.Items.Item.MicrosoftGraphCopy;
using Microsoft.Graph.Beta.Drives.Item.Items.Item.MicrosoftGraphCreateLink;
using Microsoft.Graph.Beta.Drives.Item.Items.Item.MicrosoftGraphCreateUploadSession;
using Microsoft.Graph.Beta.Drives.Item.Items.Item.MicrosoftGraphFollow;
using Microsoft.Graph.Beta.Drives.Item.Items.Item.MicrosoftGraphInvite;
using Microsoft.Graph.Beta.Drives.Item.Items.Item.MicrosoftGraphPreview;
using Microsoft.Graph.Beta.Drives.Item.Items.Item.MicrosoftGraphRestore;
using Microsoft.Graph.Beta.Drives.Item.Items.Item.MicrosoftGraphUnfollow;
using Microsoft.Graph.Beta.Drives.Item.Items.Item.MicrosoftGraphValidatePermission;
using Microsoft.Graph.Beta.Drives.Item.Items.Item.Checkin;
using Microsoft.Graph.Beta.Drives.Item.Items.Item.Checkout;
using Microsoft.Graph.Beta.Drives.Item.Items.Item.Copy;
using Microsoft.Graph.Beta.Drives.Item.Items.Item.CreateLink;
using Microsoft.Graph.Beta.Drives.Item.Items.Item.CreateUploadSession;
using Microsoft.Graph.Beta.Drives.Item.Items.Item.Follow;
using Microsoft.Graph.Beta.Drives.Item.Items.Item.Invite;
using Microsoft.Graph.Beta.Drives.Item.Items.Item.Preview;
using Microsoft.Graph.Beta.Drives.Item.Items.Item.Restore;
using Microsoft.Graph.Beta.Drives.Item.Items.Item.Unfollow;
using Microsoft.Graph.Beta.Drives.Item.Items.Item.ValidatePermission;
using Microsoft.Graph.Beta.Drives.Item.Items.Item.Permissions;
using Microsoft.Graph.Beta.Drives.Item.Items.Item.Subscriptions;
using Microsoft.Graph.Beta.Drives.Item.Items.Item.Thumbnails;
Expand Down Expand Up @@ -110,12 +109,12 @@ public CustomDriveItemItemRequestBuilder(string rawUrl, IRequestAdapter requestA
new AnalyticsRequestBuilder(this._rawUrl + "/analytics", RequestAdapter);
}
/// <summary>Provides operations to call the checkin method.</summary>
public new MicrosoftGraphCheckinRequestBuilder MicrosoftGraphCheckin { get =>
new MicrosoftGraphCheckinRequestBuilder(this._rawUrl + "/microsoft.graph.checkin", RequestAdapter);
public new CheckinRequestBuilder Checkin { get =>
new CheckinRequestBuilder(this._rawUrl + "/microsoft.graph.checkin", RequestAdapter);
}
/// <summary>Provides operations to call the checkout method.</summary>
public new MicrosoftGraphCheckoutRequestBuilder MicrosoftGraphCheckout { get =>
new MicrosoftGraphCheckoutRequestBuilder(this._rawUrl + "/microsoft.graph.checkout", RequestAdapter);
public new CheckoutRequestBuilder Checkout { get =>
new CheckoutRequestBuilder(this._rawUrl + "/microsoft.graph.checkout", RequestAdapter);
}
/// <summary>Provides operations to manage the children property of the microsoft.graph.driveItem entity.</summary>
public new ChildrenRequestBuilder Children { get =>
Expand All @@ -126,24 +125,24 @@ public CustomDriveItemItemRequestBuilder(string rawUrl, IRequestAdapter requestA
new ContentRequestBuilder(this._rawUrl + "/content", RequestAdapter);
}
/// <summary>Provides operations to call the copy method.</summary>
public new MicrosoftGraphCopyRequestBuilder MicrosoftGraphCopy { get =>
new MicrosoftGraphCopyRequestBuilder(this._rawUrl + "/microsoft.graph.copy", RequestAdapter);
public new CopyRequestBuilder Copy { get =>
new CopyRequestBuilder(this._rawUrl + "/microsoft.graph.copy", RequestAdapter);
}
/// <summary>Provides operations to call the createLink method.</summary>
public new MicrosoftGraphCreateLinkRequestBuilder MicrosoftGraphCreateLink { get =>
new MicrosoftGraphCreateLinkRequestBuilder(this._rawUrl + "/microsoft.graph.createLink", RequestAdapter);
public new CreateLinkRequestBuilder CreateLink { get =>
new CreateLinkRequestBuilder(this._rawUrl + "/microsoft.graph.createLink", RequestAdapter);
}
/// <summary>Provides operations to call the createUploadSession method.</summary>
public new MicrosoftGraphCreateUploadSessionRequestBuilder MicrosoftGraphCreateUploadSession { get =>
new MicrosoftGraphCreateUploadSessionRequestBuilder(this._rawUrl+"/microsoft.graph.createUploadSession" , RequestAdapter);
public new CreateUploadSessionRequestBuilder CreateUploadSession { get =>
new CreateUploadSessionRequestBuilder(this._rawUrl+"/microsoft.graph.createUploadSession" , RequestAdapter);
}
/// <summary>Provides operations to call the follow method.</summary>
public new MicrosoftGraphFollowRequestBuilder MicrosoftGraphFollow { get =>
new MicrosoftGraphFollowRequestBuilder(this._rawUrl + "/microsoft.graph.follow", RequestAdapter);
public new FollowRequestBuilder Follow { get =>
new FollowRequestBuilder(this._rawUrl + "/microsoft.graph.follow", RequestAdapter);
}
/// <summary>Provides operations to call the invite method.</summary>
public new MicrosoftGraphInviteRequestBuilder MicrosoftGraphInvite { get =>
new MicrosoftGraphInviteRequestBuilder(this._rawUrl + "/microsoft.graph.invite", RequestAdapter);
public new InviteRequestBuilder Invite { get =>
new InviteRequestBuilder(this._rawUrl + "/microsoft.graph.invite", RequestAdapter);
}
/// <summary>Provides operations to manage the listItem property of the microsoft.graph.driveItem entity.</summary>
public new ListItemRequestBuilder ListItem { get =>
Expand All @@ -154,14 +153,14 @@ public CustomDriveItemItemRequestBuilder(string rawUrl, IRequestAdapter requestA
new PermissionsRequestBuilder(this._rawUrl+"/permissions", RequestAdapter);
}
/// <summary>Provides operations to call the preview method.</summary>
public new MicrosoftGraphPreviewRequestBuilder MicrosoftGraphPreview { get =>
new MicrosoftGraphPreviewRequestBuilder(this._rawUrl+"/microsoft.graph.preview", RequestAdapter);
public new PreviewRequestBuilder Preview { get =>
new PreviewRequestBuilder(this._rawUrl+"/microsoft.graph.preview", RequestAdapter);
}
/// <summary>The request adapter to use to execute the requests.</summary>
private IRequestAdapter RequestAdapter { get; set; }
/// <summary>Provides operations to call the restore method.</summary>
public new MicrosoftGraphRestoreRequestBuilder MicrosoftGraphRestore { get =>
new MicrosoftGraphRestoreRequestBuilder(this._rawUrl+"/microsoft.graph.restore", RequestAdapter);
public new RestoreRequestBuilder Restore { get =>
new RestoreRequestBuilder(this._rawUrl+"/microsoft.graph.restore", RequestAdapter);
}
/// <summary>Provides operations to manage the subscriptions property of the microsoft.graph.driveItem entity.</summary>
public new SubscriptionsRequestBuilder Subscriptions { get =>
Expand All @@ -172,16 +171,15 @@ public CustomDriveItemItemRequestBuilder(string rawUrl, IRequestAdapter requestA
new ThumbnailsRequestBuilder(this._rawUrl+"/thumbnails", RequestAdapter);
}
/// <summary>Provides operations to call the unfollow method.</summary>
public new MicrosoftGraphUnfollowRequestBuilder MicrosoftGraphUnfollow { get =>
new MicrosoftGraphUnfollowRequestBuilder(this._rawUrl+"/microsoft.graph.unfollow", RequestAdapter);
public new UnfollowRequestBuilder Unfollow { get =>
new UnfollowRequestBuilder(this._rawUrl+"/microsoft.graph.unfollow", RequestAdapter);
}
/// <summary>Provides operations to call the validatePermission method.</summary>
public new MicrosoftGraphValidatePermissionRequestBuilder MicrosoftGraphValidatePermission { get =>
new MicrosoftGraphValidatePermissionRequestBuilder(this._rawUrl+"/microsoft.graph.validatePermission", RequestAdapter);
public new ValidatePermissionRequestBuilder ValidatePermission { get =>
new ValidatePermissionRequestBuilder(this._rawUrl+"/microsoft.graph.validatePermission", RequestAdapter);
}
/// <summary>Provides operations to manage the versions property of the microsoft.graph.driveItem entity.</summary>
public new VersionsRequestBuilder Versions { get =>
new VersionsRequestBuilder(this._rawUrl+"/versions", RequestAdapter);
}
}
*/
6 changes: 3 additions & 3 deletions src/Microsoft.Graph/Microsoft.Graph.Beta.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
<PackageReleaseNotes>
- [Breaking] Namespace and Request Builder renaming to align to paths defined in metadata (https://github.com/microsoft/kiota/issues/2209)
- Latest metadata updates from 7th February 2023 snapshot.
- Latest metadata updates from 28th February 2023 snapshot.
</PackageReleaseNotes>
<!-- edit this value to change the current major.minor.patch version -->
<VersionPrefix>5.19.0</VersionPrefix>
<VersionPrefix>5.20.0</VersionPrefix>
<!-- adds a version suffix if the Prerelease environment variable is set. BUILD_BUILDID is an
environment variable set by Azure pipelines from the build. We can use the buildid to correlate
which commit was used to generate the preview build. -->
Expand Down Expand Up @@ -67,7 +67,7 @@
<None Include=".\..\..\LICENSE.txt" Pack="true" PackagePath="" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.Graph.Core" Version="3.0.0-rc.*" />
<PackageReference Include="Microsoft.Graph.Core" Version="3.*" />
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1" PrivateAssets="All" />
</ItemGroup>
<ItemGroup Condition=" '$(TargetFramework)' == 'netstandard2.0' ">
Expand Down
Loading

0 comments on commit 6c938d4

Please sign in to comment.