Skip to content

Commit

Permalink
Changed the hub auth facts to be a HostedTest.
Browse files Browse the repository at this point in the history
  • Loading branch information
davidfowl committed Nov 16, 2012
1 parent c8d16f9 commit 0ac6b1f
Showing 1 changed file with 2 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@
using System.Security.Principal;
using System.Threading;
using Microsoft.AspNet.SignalR.Client.Hubs;
using Microsoft.AspNet.SignalR.FunctionalTests.Infrastructure;
using Microsoft.AspNet.SignalR.Hosting.Memory;
using Microsoft.AspNet.SignalR.Hubs;
using Xunit;

namespace Microsoft.AspNet.SignalR.Tests
{
public class HubAuthFacts : IDisposable
public class HubAuthFacts : HostedTest
{
[Fact]
public void UnauthenticatedUserCanReceiveHubMessagesByDefault()
Expand Down Expand Up @@ -971,19 +972,5 @@ public void AuthenticatedAndAuthorizedUserCanInvokeAuthorizedHubMethods()
connection.Stop();
}
}

protected virtual void Dispose(bool disposing)
{
if (disposing)
{
GC.Collect();
GC.WaitForPendingFinalizers();
}
}

public void Dispose()
{
Dispose(true);
}
}
}

0 comments on commit 0ac6b1f

Please sign in to comment.