rename proj
This commit is contained in:
@@ -1,39 +0,0 @@
|
||||
|
||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio 14
|
||||
VisualStudioVersion = 14.0.25420.1
|
||||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{F9CD17B2-71B0-4193-8028-541403725E0D}"
|
||||
EndProject
|
||||
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{69D35DAA-8C10-4BDF-8457-A6F874099677}"
|
||||
ProjectSection(SolutionItems) = preProject
|
||||
global.json = global.json
|
||||
EndProjectSection
|
||||
EndProject
|
||||
Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "FluentUriBuilder", "src\FluentUriBuilder\FluentUriBuilder.xproj", "{F6EA52B1-1BC1-490B-A348-87E83C63F24B}"
|
||||
EndProject
|
||||
Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "FluentUriBuilder.Tests", "src\FluentUriBuilder.Tests\FluentUriBuilder.Tests.xproj", "{ECACA676-2599-4FA5-8E25-7503F0CCCA78}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
Release|Any CPU = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{F6EA52B1-1BC1-490B-A348-87E83C63F24B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{F6EA52B1-1BC1-490B-A348-87E83C63F24B}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{F6EA52B1-1BC1-490B-A348-87E83C63F24B}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{F6EA52B1-1BC1-490B-A348-87E83C63F24B}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{ECACA676-2599-4FA5-8E25-7503F0CCCA78}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{ECACA676-2599-4FA5-8E25-7503F0CCCA78}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{ECACA676-2599-4FA5-8E25-7503F0CCCA78}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{ECACA676-2599-4FA5-8E25-7503F0CCCA78}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
GlobalSection(NestedProjects) = preSolution
|
||||
{F6EA52B1-1BC1-490B-A348-87E83C63F24B} = {F9CD17B2-71B0-4193-8028-541403725E0D}
|
||||
{ECACA676-2599-4FA5-8E25-7503F0CCCA78} = {F9CD17B2-71B0-4193-8028-541403725E0D}
|
||||
EndGlobalSection
|
||||
EndGlobal
|
||||
32
Readme.md
32
Readme.md
@@ -1,32 +0,0 @@
|
||||
## FluentUriBuilder
|
||||
|
||||
This lets you do things like
|
||||
|
||||
|
||||
```csharp
|
||||
|
||||
new UriBuilder()
|
||||
.WithParameter("awesome", "yodawg")
|
||||
.WithParameter("fun", ["cool", "yay"])
|
||||
.WithHost("awesome.com")
|
||||
.WithPathSegment("seg")
|
||||
.UseHttps()
|
||||
.ToString()
|
||||
|
||||
|
||||
|
||||
```
|
||||
result: `https://awesome.com/seg?awesome=yodawg&fun=cool,yay`
|
||||
|
||||
or
|
||||
|
||||
```csharp
|
||||
|
||||
new UriBuilder("https://awesome.com/yo)
|
||||
.WithParameter("id", "5")
|
||||
.ToString();
|
||||
|
||||
|
||||
|
||||
```
|
||||
result: `https://awesome.com/yo?id=5`
|
||||
39
UriBuilder.Fluent.sln
Normal file
39
UriBuilder.Fluent.sln
Normal file
@@ -0,0 +1,39 @@
|
||||
|
||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio 14
|
||||
VisualStudioVersion = 14.0.25420.1
|
||||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{B4EB6F69-0F56-4875-95AD-E4DEB5D18A74}"
|
||||
EndProject
|
||||
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{AC680F4D-C1B2-4F06-8464-CC987B1F0008}"
|
||||
ProjectSection(SolutionItems) = preProject
|
||||
global.json = global.json
|
||||
EndProjectSection
|
||||
EndProject
|
||||
Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "UriBuilder.Fluent", "src\UriBuilder.Fluent\UriBuilder.Fluent.xproj", "{B8458F59-DEBD-4844-AA29-EE3B4388AA7A}"
|
||||
EndProject
|
||||
Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "UriBuilder.Fluent.UnitTests", "src\UriBuilder.Fluent.UnitTests\UriBuilder.Fluent.UnitTests.xproj", "{F421A9EE-180C-413E-A0CD-665295825646}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
Release|Any CPU = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{B8458F59-DEBD-4844-AA29-EE3B4388AA7A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{B8458F59-DEBD-4844-AA29-EE3B4388AA7A}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{B8458F59-DEBD-4844-AA29-EE3B4388AA7A}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{B8458F59-DEBD-4844-AA29-EE3B4388AA7A}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{F421A9EE-180C-413E-A0CD-665295825646}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{F421A9EE-180C-413E-A0CD-665295825646}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{F421A9EE-180C-413E-A0CD-665295825646}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{F421A9EE-180C-413E-A0CD-665295825646}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
GlobalSection(NestedProjects) = preSolution
|
||||
{B8458F59-DEBD-4844-AA29-EE3B4388AA7A} = {B4EB6F69-0F56-4875-95AD-E4DEB5D18A74}
|
||||
{F421A9EE-180C-413E-A0CD-665295825646} = {B4EB6F69-0F56-4875-95AD-E4DEB5D18A74}
|
||||
EndGlobalSection
|
||||
EndGlobal
|
||||
10
appveyor.yml
10
appveyor.yml
@@ -1,5 +1,5 @@
|
||||
configuration: Release
|
||||
version: 0.1.{build}
|
||||
version: 1.0.{build}
|
||||
nuget:
|
||||
account_feed: true
|
||||
project_feed: true
|
||||
@@ -15,9 +15,9 @@ before_build:
|
||||
- ps: dotnet restore
|
||||
|
||||
build_script:
|
||||
- ps: dotnet build -c Release .\src\FluentUriBuilder
|
||||
- ps: dotnet pack -c Release .\src\FluentUriBuilder
|
||||
- ps: dotnet build -c Release .\src\FluentUriBuilder.Tests
|
||||
- ps: dotnet build -c Release .\src\UriBuilder.Fluent
|
||||
- ps: dotnet pack -c Release .\src\UriBuilder.Fluent
|
||||
- ps: dotnet build -c Release .\src\UriBuilder.Fluent.UnitTests
|
||||
|
||||
test_script:
|
||||
- ps: dotnet test -c Release .\src\FluentUriBuilder.Tests
|
||||
- ps: dotnet test -c Release .\src\UriBuilder.Fluent.UnitTests
|
||||
@@ -44,6 +44,14 @@ namespace FluentUriBuilder.Tests
|
||||
Assert.Equal("http://awesome.com/?awesome=cool,dawg", url.Uri.ToString());
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void TestAddParameterArrayint()
|
||||
{
|
||||
var url = new UriBuilder("http://awesome.com")
|
||||
.WithParameter("awesome", new List<int>() { 1, 2 }.Cast<Object>());
|
||||
Assert.Equal("http://awesome.com/?awesome=1,2", url.Uri.ToString());
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void TestAddParameterNoValue()
|
||||
{
|
||||
@@ -7,7 +7,7 @@ using System.Runtime.InteropServices;
|
||||
// associated with an assembly.
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("")]
|
||||
[assembly: AssemblyProduct("FluentUriBuilder.Tests")]
|
||||
[assembly: AssemblyProduct("UriBuilder.Fluent.UnitTests")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
|
||||
// Setting ComVisible to false makes the types in this assembly not visible
|
||||
@@ -16,4 +16,4 @@ using System.Runtime.InteropServices;
|
||||
[assembly: ComVisible(false)]
|
||||
|
||||
// The following GUID is for the ID of the typelib if this project is exposed to COM
|
||||
[assembly: Guid("ecaca676-2599-4fa5-8e25-7503f0ccca78")]
|
||||
[assembly: Guid("f421a9ee-180c-413e-a0cd-665295825646")]
|
||||
@@ -6,8 +6,8 @@
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VSToolsPath)\DotNet\Microsoft.DotNet.Props" Condition="'$(VSToolsPath)' != ''" />
|
||||
<PropertyGroup Label="Globals">
|
||||
<ProjectGuid>ecaca676-2599-4fa5-8e25-7503f0ccca78</ProjectGuid>
|
||||
<RootNamespace>FluentUriBuilder.Tests</RootNamespace>
|
||||
<ProjectGuid>f421a9ee-180c-413e-a0cd-665295825646</ProjectGuid>
|
||||
<RootNamespace>UriBuilder.Fluent.UnitTests</RootNamespace>
|
||||
<BaseIntermediateOutputPath Condition="'$(BaseIntermediateOutputPath)'=='' ">.\obj</BaseIntermediateOutputPath>
|
||||
<OutputPath Condition="'$(OutputPath)'=='' ">.\bin\</OutputPath>
|
||||
<TargetFrameworkVersion>v4.5.2</TargetFrameworkVersion>
|
||||
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<ActiveDebugProfile>Start</ActiveDebugProfile>
|
||||
</PropertyGroup>
|
||||
</Project>
|
||||
@@ -5,7 +5,7 @@
|
||||
"dependencies": {
|
||||
"xunit": "2.2.0-beta2-build3300",
|
||||
"dotnet-test-xunit": "2.2.0-preview2-build1029",
|
||||
"FluentUriBuilder": "*"
|
||||
"UriBuilder.Fluent": "*"
|
||||
},
|
||||
|
||||
"frameworks": {
|
||||
7496
src/UriBuilder.Fluent.UnitTests/project.lock.json
Normal file
7496
src/UriBuilder.Fluent.UnitTests/project.lock.json
Normal file
File diff suppressed because it is too large
Load Diff
@@ -7,7 +7,7 @@ using System.Runtime.InteropServices;
|
||||
// associated with an assembly.
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("")]
|
||||
[assembly: AssemblyProduct("FluentUriBuilder")]
|
||||
[assembly: AssemblyProduct("UriBuilder.Fluent")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
|
||||
// Setting ComVisible to false makes the types in this assembly not visible
|
||||
@@ -16,4 +16,4 @@ using System.Runtime.InteropServices;
|
||||
[assembly: ComVisible(false)]
|
||||
|
||||
// The following GUID is for the ID of the typelib if this project is exposed to COM
|
||||
[assembly: Guid("f6ea52b1-1bc1-490b-a348-87e83c63f24b")]
|
||||
[assembly: Guid("b8458f59-debd-4844-aa29-ee3b4388aa7a")]
|
||||
@@ -8,7 +8,9 @@ namespace System
|
||||
{
|
||||
public static class TerribleDevUriExtensions
|
||||
{
|
||||
public static UriBuilder WithParameter(this UriBuilder bld, string key, params string[] values)
|
||||
public static UriBuilder WithParameter(this UriBuilder bld, string key, params string[] values) => bld.WithParameter(key, values);
|
||||
|
||||
public static UriBuilder WithParameter(this UriBuilder bld, string key, IEnumerable<object> values)
|
||||
{
|
||||
if(string.IsNullOrWhiteSpace(key))
|
||||
{
|
||||
@@ -7,11 +7,11 @@
|
||||
|
||||
<Import Project="$(VSToolsPath)\DotNet\Microsoft.DotNet.Props" Condition="'$(VSToolsPath)' != ''" />
|
||||
<PropertyGroup Label="Globals">
|
||||
<ProjectGuid>f6ea52b1-1bc1-490b-a348-87e83c63f24b</ProjectGuid>
|
||||
<RootNamespace>FluentUriBuilder</RootNamespace>
|
||||
<ProjectGuid>b8458f59-debd-4844-aa29-ee3b4388aa7a</ProjectGuid>
|
||||
<RootNamespace>UriBuilder.Fluent</RootNamespace>
|
||||
<BaseIntermediateOutputPath Condition="'$(BaseIntermediateOutputPath)'=='' ">.\obj</BaseIntermediateOutputPath>
|
||||
<OutputPath Condition="'$(OutputPath)'=='' ">.\bin\</OutputPath>
|
||||
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
|
||||
<TargetFrameworkVersion>v4.5.2</TargetFrameworkVersion>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup>
|
||||
6
src/UriBuilder.Fluent/UriBuilder.Fluent.xproj.user
Normal file
6
src/UriBuilder.Fluent/UriBuilder.Fluent.xproj.user
Normal file
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<ActiveDebugProfile>Start</ActiveDebugProfile>
|
||||
</PropertyGroup>
|
||||
</Project>
|
||||
4026
src/UriBuilder.Fluent/project.lock.json
Normal file
4026
src/UriBuilder.Fluent/project.lock.json
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user