This repository has been archived by the owner on Jun 19, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #43 from noobot/moving-to-flurl
Moving to flurl
- Loading branch information
Showing
41 changed files
with
961 additions
and
1,294 deletions.
There are no files selected for viewing
29 changes: 29 additions & 0 deletions
29
src/SlackConnector.Tests.Integration/Connections/Clients/FlurlHandshakeClientTests.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
using System.Threading.Tasks; | ||
using NUnit.Framework; | ||
using Should; | ||
using SlackConnector.Connections.Clients; | ||
using SlackConnector.Connections.Clients.Handshake; | ||
using SlackConnector.Connections.Responses; | ||
using SlackConnector.Tests.Integration.Configuration; | ||
|
||
namespace SlackConnector.Tests.Integration.Connections.Clients | ||
{ | ||
[TestFixture] | ||
public class FlurlHandshakeClientTests | ||
{ | ||
[Test] | ||
public async Task should_perform_handshake_with_flurl() | ||
{ | ||
// given | ||
var config = new ConfigReader().GetConfig(); | ||
var client = new FlurlHandshakeClient(new ResponseVerifier()); | ||
|
||
// when | ||
HandshakeResponse response = await client.FirmShake(config.Slack.ApiToken); | ||
|
||
// then | ||
response.ShouldNotBeNull(); | ||
response.WebSocketUrl.ShouldNotBeEmpty(); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,23 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<configuration> | ||
<runtime> | ||
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> | ||
<dependentAssembly> | ||
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral"/> | ||
<bindingRedirect oldVersion="0.0.0.0-7.0.0.0" newVersion="7.0.0.0"/> | ||
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" /> | ||
<bindingRedirect oldVersion="0.0.0.0-7.0.0.0" newVersion="7.0.0.0" /> | ||
</dependentAssembly> | ||
<dependentAssembly> | ||
<assemblyIdentity name="System.Security.Cryptography.X509Certificates" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" /> | ||
<bindingRedirect oldVersion="0.0.0.0-4.1.0.0" newVersion="4.1.0.0" /> | ||
</dependentAssembly> | ||
<dependentAssembly> | ||
<assemblyIdentity name="Microsoft.Win32.Primitives" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" /> | ||
<bindingRedirect oldVersion="0.0.0.0-4.0.1.0" newVersion="4.0.1.0" /> | ||
</dependentAssembly> | ||
<dependentAssembly> | ||
<assemblyIdentity name="System.Net.Http" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" /> | ||
<bindingRedirect oldVersion="0.0.0.0-4.1.0.0" newVersion="4.1.0.0" /> | ||
</dependentAssembly> | ||
</assemblyBinding> | ||
</runtime> | ||
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6"/></startup></configuration> | ||
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.1" /></startup></configuration> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,20 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<packages> | ||
<package id="Newtonsoft.Json" version="7.0.1" targetFramework="net46" /> | ||
<package id="NUnit" version="2.6.4" targetFramework="net46" /> | ||
<package id="Flurl" version="2.2.1" targetFramework="net461" /> | ||
<package id="Flurl.Http" version="1.1.1" targetFramework="net461" /> | ||
<package id="Microsoft.Win32.Primitives" version="4.0.1" targetFramework="net461" /> | ||
<package id="Newtonsoft.Json" version="9.0.1" targetFramework="net461" /> | ||
<package id="NUnit" version="2.6.4" targetFramework="net461" /> | ||
<package id="System.Diagnostics.DiagnosticSource" version="4.0.0" targetFramework="net461" /> | ||
<package id="System.Globalization" version="4.0.11" targetFramework="net461" /> | ||
<package id="System.IO.FileSystem" version="4.0.1" targetFramework="net461" /> | ||
<package id="System.IO.FileSystem.Primitives" version="4.0.1" targetFramework="net461" /> | ||
<package id="System.Linq" version="4.1.0" targetFramework="net461" /> | ||
<package id="System.Net.Http" version="4.1.0" targetFramework="net461" /> | ||
<package id="System.Reflection.TypeExtensions" version="4.1.0" targetFramework="net461" /> | ||
<package id="System.Security.Cryptography.Algorithms" version="4.2.0" targetFramework="net461" /> | ||
<package id="System.Security.Cryptography.Encoding" version="4.0.0" targetFramework="net461" /> | ||
<package id="System.Security.Cryptography.Primitives" version="4.0.0" targetFramework="net461" /> | ||
<package id="System.Security.Cryptography.X509Certificates" version="4.1.0" targetFramework="net461" /> | ||
<package id="System.Text.Encoding.CodePages" version="4.0.1" targetFramework="net461" /> | ||
</packages> |
84 changes: 0 additions & 84 deletions
84
src/SlackConnector.Tests.Unit/Connections/Clients/ChannelClientTests.cs
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.