Skip to content

Commit

Permalink
chore!: rename namespace MockHttp.Responses to MockHttp.Response
Browse files Browse the repository at this point in the history
  • Loading branch information
skwasjer committed Sep 29, 2024
1 parent 10cc171 commit 968fcff
Show file tree
Hide file tree
Showing 65 changed files with 105 additions and 125 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using MockHttp.Responses;
using MockHttp.Response;

// ReSharper disable once CheckNamespace : BREAKING - change namespace with next release. (remove Extensions)
namespace MockHttp.Json.Extensions;
Expand Down
2 changes: 1 addition & 1 deletion src/MockHttp.Json/Extensions/ResponseBuilderExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
using MockHttp.Json.Extensions;
using MockHttp.Language.Flow.Response;
using MockHttp.Language.Response;
using MockHttp.Responses;
using MockHttp.Response;

namespace MockHttp.Json;

Expand Down
2 changes: 1 addition & 1 deletion src/MockHttp.Json/JsonContentMatcher.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using MockHttp.Json.Extensions;
using MockHttp.Json.SystemTextJson;
using MockHttp.Matchers;
using MockHttp.Responses;
using MockHttp.Response;

namespace MockHttp.Json;

Expand Down
1 change: 0 additions & 1 deletion src/MockHttp/Extensions/IRespondsExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
using MockHttp.Language.Flow;
using MockHttp.Language.Flow.Response;
using MockHttp.Response;
using MockHttp.Responses;

namespace MockHttp;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using MockHttp.Matchers;
using MockHttp.Responses;
using MockHttp.Response;

namespace MockHttp.Extensions;

Expand Down
2 changes: 1 addition & 1 deletion src/MockHttp/Internal/HttpCall.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using System.Collections.ObjectModel;
using System.Text;
using MockHttp.Matchers;
using MockHttp.Responses;
using MockHttp.Response;

namespace MockHttp;

Expand Down
2 changes: 1 addition & 1 deletion src/MockHttp/Internal/HttpCallSequence.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using MockHttp.Responses;
using MockHttp.Response;

namespace MockHttp;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using MockHttp.Responses;

namespace MockHttp.Response.Behaviors;
namespace MockHttp.Response.Behaviors;

internal sealed class HttpContentBehavior
: IResponseBehavior
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using MockHttp.Http;
using MockHttp.Responses;

namespace MockHttp.Response.Behaviors;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using MockHttp.Responses;

namespace MockHttp.Response.Behaviors;
namespace MockHttp.Response.Behaviors;

internal sealed class NetworkLatencyBehavior
: IResponseBehavior
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System.Net;
using MockHttp.Responses;

namespace MockHttp.Response.Behaviors;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System.Runtime.InteropServices;
using MockHttp.Responses;
using MockHttp.Threading;

namespace MockHttp.Response.Behaviors;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
using System.Net;
using MockHttp.IO;
using MockHttp.Responses;

namespace MockHttp.Response.Behaviors;

Expand Down
4 changes: 1 addition & 3 deletions src/MockHttp/Internal/Response/ExceptionStrategy.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using MockHttp.Responses;

namespace MockHttp.Response;
namespace MockHttp.Response;

internal sealed class ExceptionStrategy : IResponseStrategy
{
Expand Down
4 changes: 1 addition & 3 deletions src/MockHttp/Internal/Response/ResponseFuncStrategy.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using MockHttp.Responses;

namespace MockHttp.Response;
namespace MockHttp.Response;

internal sealed class ResponseFuncStrategy : IResponseStrategy
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using MockHttp.Http;
using MockHttp.Responses;
using MockHttp.Response;

namespace MockHttp.Language.Flow.Response;

Expand Down
2 changes: 1 addition & 1 deletion src/MockHttp/Language/Flow/Response/ResponseBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
using System.Net.Http.Headers;
using MockHttp.Extensions;
using MockHttp.Http;
using MockHttp.Response;
using MockHttp.Response.Behaviors;
using MockHttp.Responses;

namespace MockHttp.Language.Flow.Response;

Expand Down
1 change: 0 additions & 1 deletion src/MockHttp/Language/Flow/SetupPhrase.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
using System.ComponentModel;
using MockHttp.Response;
using MockHttp.Responses;

namespace MockHttp.Language.Flow;

Expand Down
2 changes: 1 addition & 1 deletion src/MockHttp/Language/IResponds.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.ComponentModel;
using MockHttp.Language.Flow;
using MockHttp.Responses;
using MockHttp.Response;

namespace MockHttp.Language;

Expand Down
2 changes: 1 addition & 1 deletion src/MockHttp/Language/Response/IWithResponse.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using System.ComponentModel;
using MockHttp.Responses;
using MockHttp.Response;

namespace MockHttp.Language.Response;

Expand Down
2 changes: 1 addition & 1 deletion src/MockHttp/Matchers/AnyMatcher.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.Text;
using MockHttp.Extensions;
using MockHttp.Responses;
using MockHttp.Response;

namespace MockHttp.Matchers;

Expand Down
2 changes: 1 addition & 1 deletion src/MockHttp/Matchers/ContentMatcher.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using System.Diagnostics;
using System.Globalization;
using System.Text;
using MockHttp.Responses;
using MockHttp.Response;

namespace MockHttp.Matchers;

Expand Down
2 changes: 1 addition & 1 deletion src/MockHttp/Matchers/ExpressionMatcher.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using System.Linq.Expressions;
using MockHttp.Responses;
using MockHttp.Response;

namespace MockHttp.Matchers;

Expand Down
2 changes: 1 addition & 1 deletion src/MockHttp/Matchers/FormDataMatcher.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.Diagnostics;
using MockHttp.Http;
using MockHttp.Responses;
using MockHttp.Response;

namespace MockHttp.Matchers;

Expand Down
2 changes: 1 addition & 1 deletion src/MockHttp/Matchers/HttpHeadersMatcher.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using System.Net.Http.Headers;
using MockHttp.Http;
using MockHttp.Patterns;
using MockHttp.Responses;
using MockHttp.Response;

namespace MockHttp.Matchers;

Expand Down
2 changes: 1 addition & 1 deletion src/MockHttp/Matchers/HttpMethodMatcher.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using MockHttp.Responses;
using MockHttp.Response;

namespace MockHttp.Matchers;

Expand Down
2 changes: 1 addition & 1 deletion src/MockHttp/Matchers/HttpRequestMatcher.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using MockHttp.Responses;
using MockHttp.Response;

namespace MockHttp.Matchers;

Expand Down
2 changes: 1 addition & 1 deletion src/MockHttp/Matchers/IAsyncHttpRequestMatcher.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using MockHttp.Responses;
using MockHttp.Response;

namespace MockHttp.Matchers;

Expand Down
2 changes: 1 addition & 1 deletion src/MockHttp/Matchers/MediaTypeHeaderMatcher.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using System.Net.Http.Headers;
using MockHttp.Responses;
using MockHttp.Response;

namespace MockHttp.Matchers;

Expand Down
2 changes: 1 addition & 1 deletion src/MockHttp/Matchers/NotMatcher.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using MockHttp.Responses;
using MockHttp.Response;

namespace MockHttp.Matchers;

Expand Down
2 changes: 1 addition & 1 deletion src/MockHttp/Matchers/QueryStringMatcher.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.Diagnostics;
using MockHttp.Http;
using MockHttp.Responses;
using MockHttp.Response;

namespace MockHttp.Matchers;

Expand Down
2 changes: 1 addition & 1 deletion src/MockHttp/Matchers/UriMatcher.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using System.Linq.Expressions;
using System.Runtime.CompilerServices;
using MockHttp.Patterns;
using MockHttp.Responses;
using MockHttp.Response;

namespace MockHttp.Matchers;

Expand Down
2 changes: 1 addition & 1 deletion src/MockHttp/Matchers/VersionMatcher.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using MockHttp.Responses;
using MockHttp.Response;

namespace MockHttp.Matchers;

Expand Down
2 changes: 1 addition & 1 deletion src/MockHttp/MockHttpHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
using MockHttp.Language;
using MockHttp.Language.Flow;
using MockHttp.Matchers;
using MockHttp.Responses;
using MockHttp.Response;
using MockHttp.Threading;

namespace MockHttp;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace MockHttp.Responses;
namespace MockHttp.Response;

/// <summary>
/// A delegate which when executed returns a configured HTTP response.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace MockHttp.Responses;
namespace MockHttp.Response;

/// <summary>
/// Represents a strategy that produces a mocked response.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using System.Collections.ObjectModel;
using System.Diagnostics.CodeAnalysis;

namespace MockHttp.Responses;
namespace MockHttp.Response;

/// <summary>
/// Represents the mocked request context.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using MockHttp.Json.SystemTextJson;
using MockHttp.Responses;
using MockHttp.Response;

namespace MockHttp.Json.Extensions;

Expand Down
2 changes: 1 addition & 1 deletion test/MockHttp.Json.Tests/JsonContentMatcherTests.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using MockHttp.Responses;
using MockHttp.Response;

namespace MockHttp.Json;

Expand Down
2 changes: 1 addition & 1 deletion test/MockHttp.Tests/Extensions/IRespondsExtensionsTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
using MockHttp.FluentAssertions;
using MockHttp.Language;
using MockHttp.Language.Flow;
using MockHttp.Responses;
using MockHttp.Response;

namespace MockHttp;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
using MockHttp.Extensions;
using MockHttp.Http;
using MockHttp.Matchers;
using MockHttp.Responses;
using MockHttp.Response;
using static MockHttp.Http.UriExtensions;

namespace MockHttp;
Expand Down
1 change: 0 additions & 1 deletion test/MockHttp.Tests/Internal/HttpCallTests.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using MockHttp.Response;
using MockHttp.Responses;

namespace MockHttp;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System.Diagnostics;
using MockHttp.Responses;

namespace MockHttp.Response.Behaviors;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using MockHttp.Responses;

namespace MockHttp.Response;
namespace MockHttp.Response;

public class ExceptionStrategyTests
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using MockHttp.Responses;

namespace MockHttp.Response;
namespace MockHttp.Response;

public class ResponseFuncStrategyTests
{
Expand Down
2 changes: 1 addition & 1 deletion test/MockHttp.Tests/Matchers/AnyMatcherTests.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using MockHttp.Responses;
using MockHttp.Response;

namespace MockHttp.Matchers;

Expand Down
2 changes: 1 addition & 1 deletion test/MockHttp.Tests/Matchers/BoolMatcher.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using MockHttp.Responses;
using MockHttp.Response;

namespace MockHttp.Matchers;

Expand Down
2 changes: 1 addition & 1 deletion test/MockHttp.Tests/Matchers/ContentMatcherTests.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using System.Text;
using MockHttp.Responses;
using MockHttp.Response;

namespace MockHttp.Matchers;

Expand Down
2 changes: 1 addition & 1 deletion test/MockHttp.Tests/Matchers/ExpressionMatcherTests.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using System.Linq.Expressions;
using MockHttp.Responses;
using MockHttp.Response;

namespace MockHttp.Matchers;

Expand Down
2 changes: 1 addition & 1 deletion test/MockHttp.Tests/Matchers/FakeToStringTestMatcher.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using MockHttp.Responses;
using MockHttp.Response;

namespace MockHttp.Matchers;

Expand Down
2 changes: 1 addition & 1 deletion test/MockHttp.Tests/Matchers/FormDataMatcherTests.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using System.Net.Http.Headers;
using System.Text;
using MockHttp.Http;
using MockHttp.Responses;
using MockHttp.Response;

namespace MockHttp.Matchers;

Expand Down
2 changes: 1 addition & 1 deletion test/MockHttp.Tests/Matchers/HttpHeadersMatcherTests.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using System.Globalization;
using System.Net.Http.Headers;
using MockHttp.Http;
using MockHttp.Responses;
using MockHttp.Response;

namespace MockHttp.Matchers;

Expand Down
2 changes: 1 addition & 1 deletion test/MockHttp.Tests/Matchers/HttpMethodMatcherTests.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using MockHttp.Responses;
using MockHttp.Response;

namespace MockHttp.Matchers;

Expand Down
2 changes: 1 addition & 1 deletion test/MockHttp.Tests/Matchers/HttpRequestMatcherTests.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using MockHttp.Responses;
using MockHttp.Response;

namespace MockHttp.Matchers;

Expand Down
Loading

0 comments on commit 968fcff

Please sign in to comment.