Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions Source/Mockolate/Web/HttpFormDataValue.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
using System;

namespace Mockolate.Web;

/// <summary>
/// The value of an HTTP form data parameter.
/// </summary>
Comment thread
vbreuss marked this conversation as resolved.
public class HttpFormDataValue
Comment thread
vbreuss marked this conversation as resolved.
{
private readonly string _value;

/// <inheritdoc cref="HttpFormDataValue" />
public HttpFormDataValue(string value)
{
_value = value;
}

/// <summary>
/// Checks whether the given form data parameter value matches this value.
/// </summary>
Comment thread
vbreuss marked this conversation as resolved.
public virtual bool Matches(string parameterValue)
=> _value.Equals(parameterValue, StringComparison.Ordinal);

/// <summary>
/// Implicitly converts a string to an <see cref="HttpFormDataValue" />.
/// </summary>
public static implicit operator HttpFormDataValue(string value)
{
return new HttpFormDataValue(value);
}
}
4 changes: 3 additions & 1 deletion Source/Mockolate/Web/HttpQueryParameterValue.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
using System;

namespace Mockolate.Web;

/// <summary>
Expand All @@ -17,7 +19,7 @@ public HttpQueryParameterValue(string value)
/// Checks whether the given query parameter value matches this value.
/// </summary>
public virtual bool Matches(string parameterValue)
=> _value.Equals(parameterValue);
=> _value.Equals(parameterValue, StringComparison.Ordinal);

/// <summary>
/// Implicitly converts a string to an <see cref="HttpQueryParameterValue" />.
Expand Down
145 changes: 0 additions & 145 deletions Source/Mockolate/Web/ItExtensions.HttpContent.IsBinaryContent.cs

This file was deleted.

169 changes: 0 additions & 169 deletions Source/Mockolate/Web/ItExtensions.HttpContent.IsStringContent.cs

This file was deleted.

Loading
Loading