public static void Ampersand_may_not_be_immediately_followed_by_hash() { var requestBuilder = new DriveItemRequestBuilder("https://placeholder:443/root", client: null); var factory = Program.CreateItemRequestBuilderFactory(requestBuilder, null); factory("A&#B").RequestUrl.ShouldBe("https://placeholder:443/root:/A&%20%23B:"); }
public static void Potential_URL_encoding_in_file_name_is_preserved() { var requestBuilder = new DriveItemRequestBuilder("https://placeholder:443/root", client: null); var factory = Program.CreateItemRequestBuilderFactory(requestBuilder, null); factory("FW%3asomething").RequestUrl.ShouldBe("https://placeholder:443/root:/FW%253asomething:"); }
public static void Examples_from_docs(string path, string encoded) { var requestBuilder = new DriveItemRequestBuilder("https://placeholder:443/root", client: null); var factory = Program.CreateItemRequestBuilderFactory(requestBuilder, null); factory(path).RequestUrl.ShouldBe("https://placeholder:443/root:/" + encoded + ":"); }
public Command BuildCommand() { var command = new Command("item"); var builder = new DriveItemRequestBuilder(PathParameters, RequestAdapter); command.AddCommand(builder.BuildGetCommand()); return(command); }
public Command BuildCommand() { var command = new Command("item"); var builder = new DriveItemRequestBuilder(PathParameters, RequestAdapter); command.AddCommand(builder.BuildBundlesCommand()); command.AddCommand(builder.BuildDeleteCommand()); command.AddCommand(builder.BuildFollowingCommand()); command.AddCommand(builder.BuildGetCommand()); command.AddCommand(builder.BuildItemsCommand()); command.AddCommand(builder.BuildListCommand()); command.AddCommand(builder.BuildPatchCommand()); command.AddCommand(builder.BuildRootCommand()); command.AddCommand(builder.BuildSpecialCommand()); return(command); }