Skip to content

Commit

Permalink
Added samples to the new solution file
Browse files Browse the repository at this point in the history
  • Loading branch information
adamrodger committed Jul 22, 2017
1 parent 69d057b commit 5e21fe3
Show file tree
Hide file tree
Showing 16 changed files with 105 additions and 704 deletions.
67 changes: 67 additions & 0 deletions PactNet.sln
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,18 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "PactNet", "PactNet\PactNet.
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "PactNet.Tests", "PactNet.Tests\PactNet.Tests.csproj", "{740A9198-005B-4334-ACCF-2F5FECC6AD09}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Samples", "Samples", "{547DB478-460A-428F-9371-1D653CE85DB5}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "EventApi", "EventApi", "{6663C12E-9912-40D0-9310-D119D1F6B023}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Consumer", "Samples\EventApi\Consumer\Consumer.csproj", "{1B9BAF2F-906B-4358-A1EF-AC79F7966B75}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Consumer.Tests", "Samples\EventApi\Consumer.Tests\Consumer.Tests.csproj", "{0A442FF6-4B8D-4E7E-8FE7-F7F37EB034B0}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Provider.Api.Web", "Samples\EventApi\Provider.Api.Web\Provider.Api.Web.csproj", "{0FBC851B-C32C-4554-8433-5D18061507DB}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Provider.Api.Web.Tests", "Samples\EventApi\Provider.Api.Web.Tests\Provider.Api.Web.Tests.csproj", "{6029BB36-4F61-450F-B7F3-3B99D457FD23}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand Down Expand Up @@ -40,8 +52,63 @@ Global
{740A9198-005B-4334-ACCF-2F5FECC6AD09}.Release|x64.Build.0 = Release|Any CPU
{740A9198-005B-4334-ACCF-2F5FECC6AD09}.Release|x86.ActiveCfg = Release|Any CPU
{740A9198-005B-4334-ACCF-2F5FECC6AD09}.Release|x86.Build.0 = Release|Any CPU
{1B9BAF2F-906B-4358-A1EF-AC79F7966B75}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{1B9BAF2F-906B-4358-A1EF-AC79F7966B75}.Debug|Any CPU.Build.0 = Debug|Any CPU
{1B9BAF2F-906B-4358-A1EF-AC79F7966B75}.Debug|x64.ActiveCfg = Debug|Any CPU
{1B9BAF2F-906B-4358-A1EF-AC79F7966B75}.Debug|x64.Build.0 = Debug|Any CPU
{1B9BAF2F-906B-4358-A1EF-AC79F7966B75}.Debug|x86.ActiveCfg = Debug|Any CPU
{1B9BAF2F-906B-4358-A1EF-AC79F7966B75}.Debug|x86.Build.0 = Debug|Any CPU
{1B9BAF2F-906B-4358-A1EF-AC79F7966B75}.Release|Any CPU.ActiveCfg = Release|Any CPU
{1B9BAF2F-906B-4358-A1EF-AC79F7966B75}.Release|Any CPU.Build.0 = Release|Any CPU
{1B9BAF2F-906B-4358-A1EF-AC79F7966B75}.Release|x64.ActiveCfg = Release|Any CPU
{1B9BAF2F-906B-4358-A1EF-AC79F7966B75}.Release|x64.Build.0 = Release|Any CPU
{1B9BAF2F-906B-4358-A1EF-AC79F7966B75}.Release|x86.ActiveCfg = Release|Any CPU
{1B9BAF2F-906B-4358-A1EF-AC79F7966B75}.Release|x86.Build.0 = Release|Any CPU
{0A442FF6-4B8D-4E7E-8FE7-F7F37EB034B0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{0A442FF6-4B8D-4E7E-8FE7-F7F37EB034B0}.Debug|Any CPU.Build.0 = Debug|Any CPU
{0A442FF6-4B8D-4E7E-8FE7-F7F37EB034B0}.Debug|x64.ActiveCfg = Debug|Any CPU
{0A442FF6-4B8D-4E7E-8FE7-F7F37EB034B0}.Debug|x64.Build.0 = Debug|Any CPU
{0A442FF6-4B8D-4E7E-8FE7-F7F37EB034B0}.Debug|x86.ActiveCfg = Debug|Any CPU
{0A442FF6-4B8D-4E7E-8FE7-F7F37EB034B0}.Debug|x86.Build.0 = Debug|Any CPU
{0A442FF6-4B8D-4E7E-8FE7-F7F37EB034B0}.Release|Any CPU.ActiveCfg = Release|Any CPU
{0A442FF6-4B8D-4E7E-8FE7-F7F37EB034B0}.Release|Any CPU.Build.0 = Release|Any CPU
{0A442FF6-4B8D-4E7E-8FE7-F7F37EB034B0}.Release|x64.ActiveCfg = Release|Any CPU
{0A442FF6-4B8D-4E7E-8FE7-F7F37EB034B0}.Release|x64.Build.0 = Release|Any CPU
{0A442FF6-4B8D-4E7E-8FE7-F7F37EB034B0}.Release|x86.ActiveCfg = Release|Any CPU
{0A442FF6-4B8D-4E7E-8FE7-F7F37EB034B0}.Release|x86.Build.0 = Release|Any CPU
{0FBC851B-C32C-4554-8433-5D18061507DB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{0FBC851B-C32C-4554-8433-5D18061507DB}.Debug|Any CPU.Build.0 = Debug|Any CPU
{0FBC851B-C32C-4554-8433-5D18061507DB}.Debug|x64.ActiveCfg = Debug|Any CPU
{0FBC851B-C32C-4554-8433-5D18061507DB}.Debug|x64.Build.0 = Debug|Any CPU
{0FBC851B-C32C-4554-8433-5D18061507DB}.Debug|x86.ActiveCfg = Debug|Any CPU
{0FBC851B-C32C-4554-8433-5D18061507DB}.Debug|x86.Build.0 = Debug|Any CPU
{0FBC851B-C32C-4554-8433-5D18061507DB}.Release|Any CPU.ActiveCfg = Release|Any CPU
{0FBC851B-C32C-4554-8433-5D18061507DB}.Release|Any CPU.Build.0 = Release|Any CPU
{0FBC851B-C32C-4554-8433-5D18061507DB}.Release|x64.ActiveCfg = Release|Any CPU
{0FBC851B-C32C-4554-8433-5D18061507DB}.Release|x64.Build.0 = Release|Any CPU
{0FBC851B-C32C-4554-8433-5D18061507DB}.Release|x86.ActiveCfg = Release|Any CPU
{0FBC851B-C32C-4554-8433-5D18061507DB}.Release|x86.Build.0 = Release|Any CPU
{6029BB36-4F61-450F-B7F3-3B99D457FD23}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{6029BB36-4F61-450F-B7F3-3B99D457FD23}.Debug|Any CPU.Build.0 = Debug|Any CPU
{6029BB36-4F61-450F-B7F3-3B99D457FD23}.Debug|x64.ActiveCfg = Debug|Any CPU
{6029BB36-4F61-450F-B7F3-3B99D457FD23}.Debug|x64.Build.0 = Debug|Any CPU
{6029BB36-4F61-450F-B7F3-3B99D457FD23}.Debug|x86.ActiveCfg = Debug|Any CPU
{6029BB36-4F61-450F-B7F3-3B99D457FD23}.Debug|x86.Build.0 = Debug|Any CPU
{6029BB36-4F61-450F-B7F3-3B99D457FD23}.Release|Any CPU.ActiveCfg = Release|Any CPU
{6029BB36-4F61-450F-B7F3-3B99D457FD23}.Release|Any CPU.Build.0 = Release|Any CPU
{6029BB36-4F61-450F-B7F3-3B99D457FD23}.Release|x64.ActiveCfg = Release|Any CPU
{6029BB36-4F61-450F-B7F3-3B99D457FD23}.Release|x64.Build.0 = Release|Any CPU
{6029BB36-4F61-450F-B7F3-3B99D457FD23}.Release|x86.ActiveCfg = Release|Any CPU
{6029BB36-4F61-450F-B7F3-3B99D457FD23}.Release|x86.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(NestedProjects) = preSolution
{6663C12E-9912-40D0-9310-D119D1F6B023} = {547DB478-460A-428F-9371-1D653CE85DB5}
{1B9BAF2F-906B-4358-A1EF-AC79F7966B75} = {6663C12E-9912-40D0-9310-D119D1F6B023}
{0A442FF6-4B8D-4E7E-8FE7-F7F37EB034B0} = {6663C12E-9912-40D0-9310-D119D1F6B023}
{0FBC851B-C32C-4554-8433-5D18061507DB} = {6663C12E-9912-40D0-9310-D119D1F6B023}
{6029BB36-4F61-450F-B7F3-3B99D457FD23} = {6663C12E-9912-40D0-9310-D119D1F6B023}
EndGlobalSection
EndGlobal
111 changes: 9 additions & 102 deletions Samples/EventApi/Consumer.Tests/Consumer.Tests.csproj
Original file line number Diff line number Diff line change
@@ -1,109 +1,16 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{588A65B8-0FCB-48D9-92A8-4338E608F714}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>Consumer.Tests</RootNamespace>
<AssemblyName>Consumer.Tests</AssemblyName>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\..\</SolutionDir>
<RestorePackages>true</RestorePackages>
<NuGetPackageImportStamp>
</NuGetPackageImportStamp>
<TargetFramework>net46</TargetFramework>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="Newtonsoft.Json, Version=6.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\..\packages\Newtonsoft.Json.6.0.3\lib\net45\Newtonsoft.Json.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Net" />
<Reference Include="System.Net.Http" />
<Reference Include="System.Net.Http.WebRequest" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Xml" />
<Reference Include="xunit.abstractions, Version=2.0.0.0, Culture=neutral, PublicKeyToken=8d05b1bb7a6fdb6c, processorArchitecture=MSIL">
<HintPath>..\..\..\packages\xunit.abstractions.2.0.0\lib\net35\xunit.abstractions.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="xunit.assert, Version=2.1.0.3179, Culture=neutral, PublicKeyToken=8d05b1bb7a6fdb6c, processorArchitecture=MSIL">
<HintPath>..\..\..\packages\xunit.assert.2.1.0\lib\portable-net45+win8+wp8+wpa81\xunit.assert.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="xunit.core, Version=2.1.0.3179, Culture=neutral, PublicKeyToken=8d05b1bb7a6fdb6c, processorArchitecture=MSIL">
<HintPath>..\..\..\packages\xunit.extensibility.core.2.1.0\lib\portable-net45+win8+wp8+wpa81\xunit.core.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="xunit.execution.desktop, Version=2.1.0.3179, Culture=neutral, PublicKeyToken=8d05b1bb7a6fdb6c, processorArchitecture=MSIL">
<HintPath>..\..\..\packages\xunit.extensibility.execution.2.1.0\lib\net45\xunit.execution.desktop.dll</HintPath>
<Private>True</Private>
</Reference>
</ItemGroup>
<ItemGroup>
<Compile Include="ConsumerEventApiPact.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="EventsApiConsumerTests.cs" />
</ItemGroup>
<ItemGroup>
<None Include="packages.config">
<SubType>Designer</SubType>
</None>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\..\PactNet\PactNet.csproj">
<Project>{7024b146-2cb2-4de2-b079-58cf9c44640b}</Project>
<Name>PactNet</Name>
</ProjectReference>
<ProjectReference Include="..\Consumer\Consumer.csproj">
<Project>{4df20682-f8dd-4271-86ca-17fa2b3d8d29}</Project>
<Name>Consumer</Name>
</ProjectReference>
<PackageReference Include="Microsoft.CSharp" Version="4.0.1" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.0.0" />
<PackageReference Include="Newtonsoft.Json" Version="10.0.3" />
<PackageReference Include="xunit" Version="2.2.0" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.2.0" />
</ItemGroup>
<ItemGroup>
<Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" />
<ProjectReference Include="..\..\..\PactNet\PactNet.csproj" />
<ProjectReference Include="..\Consumer\Consumer.csproj" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<Import Project="$(SolutionDir)\.nuget\NuGet.targets" Condition="Exists('$(SolutionDir)\.nuget\NuGet.targets')" />
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
<PropertyGroup>
<ErrorText>This project references NuGet package(s) that are missing on this computer. Enable NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText>
</PropertyGroup>
<Error Condition="!Exists('$(SolutionDir)\.nuget\NuGet.targets')" Text="$([System.String]::Format('$(ErrorText)', '$(SolutionDir)\.nuget\NuGet.targets'))" />
</Target>
<PropertyGroup>
<PreBuildEvent>if EXIST "$(SolutionDir)PactNet\Core\standalone" ( XCOPY "$(SolutionDir)PactNet\Core\standalone" "$(TargetDir)" /E /Y &gt; nul )</PreBuildEvent>
</PropertyGroup>
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
</Project>
2 changes: 1 addition & 1 deletion Samples/EventApi/Consumer.Tests/ConsumerEventApiPact.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public class ConsumerEventApiPact : IDisposable

public ConsumerEventApiPact()
{
if (!File.Exists(".\\pact\\bin\\pact-mock-service.bat"))
if (!File.Exists(@".\pact\bin\pact-mock-service.bat"))
{
throw new Exception("Please run '.\\Build\\Download-Standalone-Core.ps1' from the project root to download the standalone mock provider service and then Rebuild solution");
}
Expand Down
36 changes: 0 additions & 36 deletions Samples/EventApi/Consumer.Tests/Properties/AssemblyInfo.cs

This file was deleted.

10 changes: 0 additions & 10 deletions Samples/EventApi/Consumer.Tests/packages.config

This file was deleted.

78 changes: 5 additions & 73 deletions Samples/EventApi/Consumer/Consumer.csproj
Original file line number Diff line number Diff line change
@@ -1,78 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="..\..\..\packages\Microsoft.Net.Compilers.1.3.2\build\Microsoft.Net.Compilers.props" Condition="Exists('..\..\..\packages\Microsoft.Net.Compilers.1.3.2\build\Microsoft.Net.Compilers.props')" />
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{4DF20682-F8DD-4271-86CA-17FA2B3D8D29}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>Consumer</RootNamespace>
<AssemblyName>Consumer</AssemblyName>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\..\</SolutionDir>
<RestorePackages>true</RestorePackages>
<NuGetPackageImportStamp>32cfa714</NuGetPackageImportStamp>
<TargetFramework>net46</TargetFramework>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="Newtonsoft.Json">
<HintPath>..\..\..\packages\Newtonsoft.Json.6.0.3\lib\net45\Newtonsoft.Json.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Net.Http" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="DateTimeFactory.cs" />
<Compile Include="Models\StatusResponseBody.cs" />
<Compile Include="Models\Event.cs" />
<Compile Include="Models\HypermediaLink.cs" />
<Compile Include="Models\RestResponseBody.cs" />
<Compile Include="Models\UptimeResponseBody.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="EventsApiClient.cs" />
</ItemGroup>
<ItemGroup>
<None Include="packages.config" />
<PackageReference Include="Microsoft.CSharp" Version="4.0.1" />
<PackageReference Include="Newtonsoft.Json" Version="10.0.3" />
<PackageReference Include="System.Net.Http" Version="4.3.2" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<Import Project="$(SolutionDir)\.nuget\NuGet.targets" Condition="Exists('$(SolutionDir)\.nuget\NuGet.targets')" />
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
<PropertyGroup>
<ErrorText>This project references NuGet package(s) that are missing on this computer. Enable NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText>
</PropertyGroup>
<Error Condition="!Exists('$(SolutionDir)\.nuget\NuGet.targets')" Text="$([System.String]::Format('$(ErrorText)', '$(SolutionDir)\.nuget\NuGet.targets'))" />
<Error Condition="!Exists('..\..\..\packages\Microsoft.Net.Compilers.1.3.2\build\Microsoft.Net.Compilers.props')" Text="$([System.String]::Format('$(ErrorText)', '..\..\..\packages\Microsoft.Net.Compilers.1.3.2\build\Microsoft.Net.Compilers.props'))" />
</Target>
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
</Project>
Loading

0 comments on commit 5e21fe3

Please sign in to comment.