Skip to content
This repository has been archived by the owner on Sep 18, 2021. It is now read-only.

Commit

Permalink
RaSu
Browse files Browse the repository at this point in the history
  • Loading branch information
leastprivilege committed Dec 20, 2015
1 parent 30d7ac2 commit 7794a15
Show file tree
Hide file tree
Showing 33 changed files with 37 additions and 62 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

namespace IdentityServer3.Tests.Configuration.Hosting
{

public class AntiForgeryTokenValidatorTest
{
}
Expand Down
2 changes: 1 addition & 1 deletion source/Tests/UnitTests/Configuration/RegistrationTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

namespace IdentityServer3.Tests.Configuration
{

public class RegistrationTests
{
[Fact]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
using IdentityServer3.Core.Services;
using IdentityServer3.Core.Services.Default;
using IdentityServer3.Core.Validation;
using Microsoft.Owin;
using System;
using System.Collections.Generic;
using System.Collections.Specialized;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

namespace IdentityServer3.Tests.Connect.Endpoints
{

public class AuthorizeEndpointControllerTests : IdSvrHostTestBase
{
HttpResponseMessage GetAuthorizePage()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

namespace IdentityServer3.Tests.Connect.Endpoints
{

public class ClientPermissionsControllerTests : IdSvrHostTestBase
{
string clientId;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
using IdentityServer3.Core.Services.Default;
using IdentityServer3.Core.Validation;
using IdentityServer3.Tests.Endpoints;
using Microsoft.Owin;
using System;
using System.Collections.Generic;
using System.Collections.Specialized;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
using System;
using FluentAssertions;
using IdentityModel.Client;
using Microsoft.Owin.Builder;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Text;
using System.Threading.Tasks;
using Xunit;
using Microsoft.Owin.Builder;
using FluentAssertions;
using System.Net;
using IdentityModel.Client;

namespace IdentityServer3.Tests.Endpoints.Connect.Introspection
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
using IdentityServer3.Core.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace IdentityServer3.Tests.Endpoints.Connect.Introspection.Setup
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,7 @@
using IdentityServer3.Core.Services.InMemory;
using Microsoft.Owin.Builder;
using Owin;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace IdentityServer3.Tests.Endpoints.Connect.Introspection.Setup
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
using IdentityServer3.Core.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace IdentityServer3.Tests.Endpoints.Connect.Introspection.Setup
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@

namespace IdentityServer3.Tests.Connect.ResponseHandling
{

public class AuthorizeInteractionResponseGeneratorTests_Consent
{
Mock<IConsentService> mockConsent;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

namespace IdentityServer3.Tests.Connect.ResponseHandling
{

public class AuthorizeInteractionResponseGeneratorTests_Login
{
IdentityServerOptions options;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

namespace IdentityServer3.Tests.Services.Default
{

public class TokenMetadataPermissionsStoreAdapterTest
{
List<ITokenMetadata> tokens;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

namespace IdentityServer3.Tests.Validation.AuthorizeRequest
{

public class Authorize_ClientValidation_Code
{
IdentityServerOptions _options = TestIdentityServerOptions.Create();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

namespace IdentityServer3.Tests.Validation.AuthorizeRequest
{

public class Authorize_ClientValidation_IdToken
{
IdentityServerOptions _options = TestIdentityServerOptions.Create();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

namespace IdentityServer3.Tests.Validation.AuthorizeRequest
{

public class Authorize_ClientValidation_Token
{
IdentityServerOptions _options = TestIdentityServerOptions.Create();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

namespace IdentityServer3.Tests.Validation.AuthorizeRequest
{

public class Authorize_ClientValidation_Valid
{
IdentityServerOptions _options = TestIdentityServerOptions.Create();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

namespace IdentityServer3.Tests.Validation.AuthorizeRequest
{

public class Authorize_ProtocolValidation_Valid
{
[Fact]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,7 @@
using FluentAssertions;
using IdentityServer3.Core.Validation;
using Microsoft.Owin;
using System.Collections.Generic;
using System.IO;
using System.Net.Http;
using System.Text;
using System.Threading.Tasks;
using Xunit;
Expand Down
5 changes: 2 additions & 3 deletions source/Tests/UnitTests/Validation/CustomGrantValidation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,15 @@
* limitations under the License.
*/

using System;
using FluentAssertions;
using IdentityServer3.Core.Extensions;
using IdentityServer3.Core.Services;
using IdentityServer3.Core.Validation;
using Moq;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using IdentityServer3.Core.Logging;
using Moq;
using Xunit;

namespace IdentityServer3.Tests.Validation
Expand Down
2 changes: 1 addition & 1 deletion source/Tests/UnitTests/Validation/ScopeValidation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

namespace IdentityServer3.Tests.Validation
{

public class ScopeValidation
{
const string Category = "Scope Validation";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
using System.Collections.Generic;
using System.Text;
using Xunit;
using System.Linq;

namespace IdentityServer3.Tests.Validation.Secrets
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,14 @@
* limitations under the License.
*/

using System;
using System.IdentityModel.Tokens;
using System.IO;
using System.Text;
using FluentAssertions;
using IdentityServer3.Core;
using IdentityServer3.Core.Configuration;
using IdentityServer3.Core.Validation;
using Microsoft.Owin;
using System.IdentityModel.Tokens;
using System.IO;
using System.Text;
using Xunit;

namespace IdentityServer3.Tests.Validation.Secrets
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
using IdentityServer3.Core.Validation;
using Microsoft.Owin;
using System.IO;
using System.Linq;
using System.Text;
using Xunit;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,6 @@
* limitations under the License.
*/

using System;
using System.Collections.Generic;
using System.IdentityModel.Tokens;
using System.Security.Claims;
using System.Security.Cryptography.X509Certificates;
using System.Threading.Tasks;
using FluentAssertions;
using IdentityModel;
using IdentityServer3.Core;
Expand All @@ -28,6 +22,12 @@
using IdentityServer3.Core.Services;
using IdentityServer3.Core.Services.InMemory;
using IdentityServer3.Core.Validation;
using System;
using System.Collections.Generic;
using System.IdentityModel.Tokens;
using System.Security.Claims;
using System.Security.Cryptography.X509Certificates;
using System.Threading.Tasks;
using Xunit;

namespace IdentityServer3.Tests.Validation.Secrets
Expand Down
1 change: 0 additions & 1 deletion source/Tests/UnitTests/Validation/Setup/Factory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
using Microsoft.Owin;
using Moq;
using System.Collections.Generic;
using System;

namespace IdentityServer3.Tests.Validation
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
using IdentityServer3.Core.Extensions;
using IdentityServer3.Core.Models;
using IdentityServer3.Core.Services;
using IdentityServer3.Core.Services.Default;
using IdentityServer3.Core.Services.InMemory;
using Moq;
using System;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,14 @@

using FluentAssertions;
using IdentityServer3.Core;
using IdentityServer3.Core.Services.Default;
using System.Collections.Generic;
using System.IdentityModel.Tokens;
using System.Threading.Tasks;
using Xunit;

namespace IdentityServer3.Tests.Validation.Tokens
{

public class IdentityTokenValidation
{
const string Category = "Identity token validation";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

namespace IdentityServer3.Tests.Validation.TokenRequest
{

public class TokenRequestValidation_ClientCredentials_Invalid
{
const string Category = "TokenRequest Validation - ClientCredentials - Invalid";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

namespace IdentityServer3.Tests.Validation.TokenRequest
{

public class TokenRequestValidation_Code_Invalid
{
IClientStore _clients = Factory.CreateClientStore();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,19 @@
* limitations under the License.
*/

using System;
using FluentAssertions;
using IdentityServer3.Core;
using IdentityServer3.Core.Services;
using System.Collections.Specialized;
using System.Threading.Tasks;
using IdentityServer3.Core.Validation;
using Moq;
using System;
using System.Collections.Specialized;
using System.Threading.Tasks;
using Xunit;

namespace IdentityServer3.Tests.Validation.TokenRequest
{

public class TokenRequestValidation_CustomGrants_Invalid
{
const string Category = "TokenRequest Validation - AssertionFlow - Invalid";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

namespace IdentityServer3.Tests.Validation.TokenRequest
{

public class TokenRequestValidation_ResourceOwner_Invalid
{
const string Category = "TokenRequest Validation - ResourceOwner - Invalid";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

namespace IdentityServer3.Tests.Validation.TokenRequest
{

public class TokenRequestValidation_Valid
{
const string Category = "TokenRequest Validation - General - Valid";
Expand Down

0 comments on commit 7794a15

Please sign in to comment.