Skip to content

Commit e2b2f5e

Browse files
damianhthecodejunkie
authored andcommitted
Remove reduntant using directives.
1 parent f5e2561 commit e2b2f5e

File tree

449 files changed

+995
-759
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

449 files changed

+995
-759
lines changed

src/Nancy.Authentication.Basic.Tests/BasicAuthenticationConfigurationFixture.cs

+10-7
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
1-
using System;
2-
using FakeItEasy;
3-
using Nancy.Tests;
4-
using Xunit;
5-
6-
namespace Nancy.Authentication.Basic.Tests
1+
namespace Nancy.Authentication.Basic.Tests
72
{
8-
public class BasicAuthenticationConfigurationFixture
3+
using System;
4+
5+
using FakeItEasy;
6+
7+
using Nancy.Tests;
8+
9+
using Xunit;
10+
11+
public class BasicAuthenticationConfigurationFixture
912
{
1013
[Fact]
1114
public void Should_throw_with_null_user_validator()

src/Nancy.Authentication.Basic.Tests/BasicAuthenticationFixture.cs

+5-2
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,16 @@
44
using System.Collections.Generic;
55
using System.Text;
66
using System.Threading;
7+
78
using FakeItEasy;
9+
10+
using Nancy.Bootstrapper;
811
using Nancy.Security;
912
using Nancy.Tests;
10-
using Xunit;
11-
using Nancy.Bootstrapper;
1213
using Nancy.Tests.Fakes;
1314

15+
using Xunit;
16+
1417
public class BasicAuthenticationFixture
1518
{
1619
private readonly BasicAuthenticationConfiguration config;

src/Nancy.Authentication.Basic/BasicAuthentication.cs

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
{
33
using System;
44
using System.Text;
5+
56
using Nancy.Bootstrapper;
67
using Nancy.Extensions;
78
using Nancy.Security;

src/Nancy.Authentication.Basic/BasicAuthenticationConfiguration.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public class BasicAuthenticationConfiguration
1313
/// <param name="userValidator">A valid instance of <see cref="IUserValidator"/> class</param>
1414
/// <param name="realm">Basic authentication realm</param>
1515
/// <param name="userPromptBehaviour">Control when the browser should be instructed to prompt for credentials</param>
16-
public BasicAuthenticationConfiguration(IUserValidator userValidator, string realm, UserPromptBehaviour userPromptBehaviour = Basic.UserPromptBehaviour.NonAjax)
16+
public BasicAuthenticationConfiguration(IUserValidator userValidator, string realm, UserPromptBehaviour userPromptBehaviour = UserPromptBehaviour.NonAjax)
1717
{
1818
if (userValidator == null)
1919
{

src/Nancy.Authentication.Basic/IUserValidator.cs

+1-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
using System;
2-
using System.Collections.Generic;
3-
using System.Linq;
4-
namespace Nancy.Authentication.Basic
1+
namespace Nancy.Authentication.Basic
52
{
63
using Nancy.Security;
74

src/Nancy.Authentication.Forms.Tests/Fakes/FakeUserIdentity.cs

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
namespace Nancy.Authentication.Forms.Tests.Fakes
22
{
33
using System.Collections.Generic;
4-
using Security;
4+
5+
using Nancy.Security;
56

67
public class FakeUserIdentity : IUserIdentity
78
{

src/Nancy.Authentication.Forms.Tests/FormsAuthenticationConfigurationFixture.cs

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ namespace Nancy.Authentication.Forms.Tests
44

55
using Nancy.Cryptography;
66
using Nancy.Tests;
7+
78
using Xunit;
89

910
public class FormsAuthenticationConfigurationFixture

src/Nancy.Authentication.Forms.Tests/FormsAuthenticationFixture.cs

+7-5
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,16 @@ namespace Nancy.Authentication.Forms.Tests
33
using System;
44
using System.Linq;
55
using System.Threading;
6-
using Bootstrapper;
7-
using Cryptography;
6+
87
using FakeItEasy;
9-
using Fakes;
10-
using Helpers;
11-
using Nancy.Security;
8+
9+
using Nancy.Authentication.Forms.Tests.Fakes;
10+
using Nancy.Bootstrapper;
11+
using Nancy.Cryptography;
12+
using Nancy.Helpers;
1213
using Nancy.Tests;
1314
using Nancy.Tests.Fakes;
15+
1416
using Xunit;
1517

1618
public class FormsAuthenticationFixture

src/Nancy.Authentication.Forms/FormsAuthentication.cs

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
namespace Nancy.Authentication.Forms
22
{
33
using System;
4-
using Bootstrapper;
5-
using Cookies;
6-
using Cryptography;
7-
using Helpers;
4+
5+
using Nancy.Bootstrapper;
6+
using Nancy.Cookies;
7+
using Nancy.Cryptography;
88
using Nancy.Extensions;
9+
using Nancy.Helpers;
910
using Nancy.Security;
1011

1112
/// <summary>

src/Nancy.Authentication.Forms/FormsAuthenticationConfiguration.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
namespace Nancy.Authentication.Forms
22
{
3-
using Cryptography;
3+
using Nancy.Cryptography;
44

55
/// <summary>
66
/// Configuration options for forms authentication

src/Nancy.Authentication.Forms/IUserMapper.cs

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
namespace Nancy.Authentication.Forms
22
{
33
using System;
4+
45
using Nancy.Security;
56

67
/// <summary>

src/Nancy.Authentication.Forms/ModuleExtensions.cs

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
namespace Nancy.Authentication.Forms
22
{
33
using System;
4-
using Extensions;
4+
5+
using Nancy.Extensions;
56

67
/// <summary>
78
/// Module extensions for login/logout of forms auth

src/Nancy.Authentication.Stateless/StatelessAuthentication.cs

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
namespace Nancy.Authentication.Stateless
22
{
33
using System;
4+
45
using Nancy.Bootstrapper;
56

67
/// <summary>

src/Nancy.Authentication.Stateless/StatelessAuthenticationConfiguration.cs

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
namespace Nancy.Authentication.Stateless
22
{
33
using System;
4+
45
using Nancy.Security;
56

67
/// <summary>

src/Nancy.Authentication.Token.Tests/Storage/FileSystemTokenKeyStoreFixture.cs

+2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,10 @@
55
using System.IO;
66
using System.Linq;
77
using System.Text;
8+
89
using Nancy.Authentication.Token.Storage;
910
using Nancy.Testing.Fakes;
11+
1012
using Xunit;
1113

1214
public class FileSystemTokenKeyStoreFixture

src/Nancy.Authentication.Token.Tests/TokenAuthenticationConfigurationFixture.cs

+2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
namespace Nancy.Authentication.Token.Tests
22
{
33
using System;
4+
45
using Nancy.Tests;
6+
57
using Xunit;
68

79
public class TokenAuthenticationConfigurationFixture

src/Nancy.Authentication.Token.Tests/TokenAuthenticationFixture.cs

+3-1
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,14 @@
33
using System;
44
using System.Collections.Generic;
55
using System.Threading;
6+
67
using FakeItEasy;
78

9+
using Nancy.Bootstrapper;
810
using Nancy.Security;
911
using Nancy.Tests;
10-
using Nancy.Bootstrapper;
1112
using Nancy.Tests.Fakes;
13+
1214
using Xunit;
1315

1416
public class TokenAuthenticationFixture

src/Nancy.Authentication.Token.Tests/TokenizerFixture.cs

+4-1
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,14 @@
44
using System.Collections.Generic;
55
using System.Text;
66
using System.Threading;
7+
8+
using FakeItEasy;
9+
710
using Nancy.Authentication.Token.Storage;
811
using Nancy.Security;
912
using Nancy.Tests;
1013
using Nancy.Tests.Fakes;
11-
using FakeItEasy;
14+
1215
using Xunit;
1316

1417
public class TokenizerFixture

src/Nancy.Authentication.Token/ITokenizer.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
namespace Nancy.Authentication.Token
22
{
3-
using Security;
3+
using Nancy.Security;
44

55
/// <summary>
66
/// Encodes and decodes authorization tokens.

src/Nancy.Authentication.Token/TokenAuthentication.cs

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
namespace Nancy.Authentication.Token
22
{
33
using System;
4+
45
using Nancy.Bootstrapper;
56
using Nancy.Security;
67

src/Nancy.Authentication.Token/Tokenizer.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
using System.Text;
99

1010
using Nancy.Authentication.Token.Storage;
11-
using Nancy.Security;
1211
using Nancy.ErrorHandling;
12+
using Nancy.Security;
1313

1414
/// <summary>
1515
/// Default implementation of <see cref="ITokenizer"/>

src/Nancy.Demo.Authentication.Basic/AuthenticationBootstrapper.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
namespace Nancy.Demo.Authentication.Basic
22
{
33
using Nancy.Authentication.Basic;
4-
using Bootstrapper;
4+
using Nancy.Bootstrapper;
55
using Nancy.TinyIoc;
66

77
public class AuthenticationBootstrapper : DefaultNancyBootstrapper

src/Nancy.Demo.Authentication.Basic/DemoUserIdentity.cs

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
namespace Nancy.Demo.Authentication.Basic
22
{
33
using System.Collections.Generic;
4+
45
using Nancy.Security;
56

67
public class DemoUserIdentity : IUserIdentity

src/Nancy.Demo.Authentication.Forms.TestingDemo/LoginFixture.cs

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
namespace Nancy.Demo.Authentication.Forms.TestingDemo
22
{
33
using System;
4-
using Testing;
4+
5+
using Nancy.Testing;
6+
57
using Xunit;
68

79
public class LoginFixture

src/Nancy.Demo.Authentication.Forms.TestingDemo/TestBootstrapper.cs

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@ namespace Nancy.Demo.Authentication.Forms.TestingDemo
22
{
33
using System;
44
using System.IO;
5+
6+
using Nancy.Testing;
57
using Nancy.Testing.Fakes;
6-
using Testing;
78

89
public class TestBootstrapper : FormsAuthBootstrapper
910
{

src/Nancy.Demo.Authentication.Forms/DemoUserIdentity.cs

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
namespace Nancy.Demo.Authentication.Forms
22
{
33
using System.Collections.Generic;
4+
45
using Nancy.Security;
56

67
public class DemoUserIdentity : IUserIdentity

src/Nancy.Demo.Authentication.Forms/FormsAuthBootstrapper.cs

-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
namespace Nancy.Demo.Authentication.Forms
22
{
3-
using Nancy;
43
using Nancy.Authentication.Forms;
54
using Nancy.Bootstrapper;
65
using Nancy.TinyIoc;

src/Nancy.Demo.Authentication.Forms/MainModule.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ namespace Nancy.Demo.Authentication.Forms
22
{
33
using System;
44
using System.Dynamic;
5-
using Nancy;
5+
66
using Nancy.Authentication.Forms;
77
using Nancy.Extensions;
88

src/Nancy.Demo.Authentication.Forms/PartlySecureModule.cs

-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
namespace Nancy.Demo.Authentication.Forms
22
{
3-
using Nancy;
43
using Nancy.Demo.Authentication.Forms.Models;
54
using Nancy.Security;
65

src/Nancy.Demo.Authentication.Forms/SecureModule.cs

-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
namespace Nancy.Demo.Authentication.Forms
22
{
3-
using Nancy;
43
using Nancy.Demo.Authentication.Forms.Models;
54
using Nancy.Security;
65

src/Nancy.Demo.Authentication.Forms/UserDatabase.cs

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ namespace Nancy.Demo.Authentication.Forms
33
using System;
44
using System.Collections.Generic;
55
using System.Linq;
6+
67
using Nancy.Authentication.Forms;
78
using Nancy.Security;
89

src/Nancy.Demo.Authentication.Stateless/DemoUserIdentity.cs

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
namespace Nancy.Demo.Authentication.Stateless
22
{
33
using System.Collections.Generic;
4+
45
using Nancy.Security;
56

67
public class DemoUserIdentity : IUserIdentity

src/Nancy.Demo.Authentication.Stateless/StatelessAuthBootstrapper.cs

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ namespace Nancy.Demo.Authentication.Stateless
22
{
33
using Nancy.Authentication.Stateless;
44
using Nancy.Bootstrapper;
5-
using Nancy.Conventions;
65
using Nancy.TinyIoc;
76

87
public class StatelessAuthBootstrapper : DefaultNancyBootstrapper

src/Nancy.Demo.Authentication.Stateless/UserDatabase.cs

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
namespace Nancy.Demo.Authentication.Stateless
22
{
3-
using Nancy.Security;
43
using System;
54
using System.Collections.Generic;
65
using System.Linq;
76

7+
using Nancy.Security;
8+
89
public class UserDatabase
910
{
1011
static readonly List<Tuple<string, string>> ActiveApiKeys = new List<Tuple<string, string>>();

src/Nancy.Demo.Authentication.Token.TestingDemo/LoginFixture.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
namespace Nancy.Demo.Authentication.Token.TestingDemo
22
{
3-
using System;
43
using Nancy.Testing;
54
using Nancy.Tests;
5+
66
using Xunit;
77

88
public class LoginFixture

src/Nancy.Demo.Authentication.Token.TestingDemo/TestBootstrapper.cs

+4-3
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,16 @@ namespace Nancy.Demo.Authentication.Token.TestingDemo
22
{
33
using System;
44
using System.IO;
5+
56
using Nancy.Authentication.Token;
67
using Nancy.Authentication.Token.Storage;
7-
using Nancy.Demo.Authentication.Token;
8-
using Nancy.Testing.Fakes;
98
using Nancy.Testing;
9+
using Nancy.Testing.Fakes;
10+
using Nancy.TinyIoc;
1011

1112
public class TestBootstrapper : TokenAuthBootstrapper
1213
{
13-
protected override void ConfigureApplicationContainer(TinyIoc.TinyIoCContainer container)
14+
protected override void ConfigureApplicationContainer(TinyIoCContainer container)
1415
{
1516
container.Register<ITokenizer>(new Tokenizer(cfg => cfg.WithKeyCache(new InMemoryTokenKeyStore())));
1617
}

src/Nancy.Demo.Authentication.Token/AuthModule.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
namespace Nancy.Demo.Authentication.Token
22
{
33
using Nancy.Authentication.Token;
4-
using Security;
4+
using Nancy.Security;
55

66
public class AuthModule : NancyModule
77
{

0 commit comments

Comments
 (0)