seal up unsealed classes, clean up using statements

This commit is contained in:
Tommy Parnell
2015-05-11 21:16:44 -04:00
parent d5671ff5a9
commit 81de4cfc01
12 changed files with 15 additions and 34 deletions

View File

@@ -1,15 +1,14 @@
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.IO;
using System.Threading.Tasks;
using Moq;
using Newtonsoft.Json;
using NUnit.Framework;
using RestSharp;
using Untappd.Net.Request;
using Untappd.Net.Responses.BeerInfo;
using Untappd.Net.Responses.Actions;
using System.IO;
using Untappd.Net.Authentication;
using Untappd.Net.Request;
using Untappd.Net.Responses.Actions;
using Untappd.Net.Responses.BeerInfo;
namespace Untappd.Net.UnitTests.Request
{

View File

@@ -1,8 +1,4 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using NUnit.Framework;
using Untappd.Net.Responses.Actions;

View File

@@ -1,8 +1,4 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using NUnit.Framework;
using Untappd.Net.Responses.Actions;

View File

@@ -4,7 +4,7 @@ using System.Collections.ObjectModel;
namespace Untappd.Net.Authentication
{
public class AuthenticatedUntappdCredentials : UntappdCredentials, IAuthenticatedUntappdCredentials
public sealed class AuthenticatedUntappdCredentials : UntappdCredentials, IAuthenticatedUntappdCredentials
{
/// <summary>
/// Pass your authenticated access token

View File

@@ -4,7 +4,7 @@ using System.Collections.ObjectModel;
namespace Untappd.Net.Authentication
{
public class UnAuthenticatedUntappdCredentials : UntappdCredentials, IUnAuthenticatedUntappdCredentials
public sealed class UnAuthenticatedUntappdCredentials : UntappdCredentials, IUnAuthenticatedUntappdCredentials
{
/// <summary>
/// UnAuthenticated request. Pass your API id and secret

View File

@@ -3,7 +3,7 @@
namespace Untappd.Net.Exception
{
[Serializable]
public class EndpointConfigurationException : BaseUntappdException
public sealed class EndpointConfigurationException : BaseUntappdException
{
/// <summary>
/// Called when a class has an empty endpoint

View File

@@ -1,9 +1,4 @@
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Newtonsoft.Json;
using RestSharp;

View File

@@ -1,16 +1,15 @@
using System.Collections.Generic;
using System;
using System.Collections.Generic;
using System.Net;
using System.Threading.Tasks;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using RestSharp;
using Untappd.Net.Exception;
using System;
using Untappd.Net.Authentication;
using Untappd.Net.Exception;
namespace Untappd.Net.Request
{
public partial class Repository
public sealed partial class Repository
{
internal IRestClient Client;
internal IRestRequest Request;

View File

@@ -5,7 +5,7 @@ using Untappd.Net.Exception;
namespace Untappd.Net.Request
{
public partial class Repository
public sealed partial class Repository
{
/// <summary>
/// Get the things!

View File

@@ -3,7 +3,7 @@ using Untappd.Net.Authentication;
namespace Untappd.Net.Request
{
public partial class Repository
public sealed partial class Repository
{
/// <summary>
/// do a post with actions

View File

@@ -1,8 +1,4 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Collections.Generic;
using RestSharp;
using Untappd.Net.Request;

View File

@@ -10,7 +10,7 @@ namespace Untappd.Net
/// Deserialize json as T if json schema defines an object.
/// </summary>
/// <typeparam name="T"></typeparam>
internal class SingleObjectArrayConverter<T> : JsonConverter
internal sealed class SingleObjectArrayConverter<T> : JsonConverter
where T : new()
{
public override bool CanConvert(Type objectType)