Skip to content

Commit

Permalink
Merge pull request #3 from ffMathy/patch-1
Browse files Browse the repository at this point in the history
Don't throw NotImplementedException
  • Loading branch information
vadimzozulya committed Apr 18, 2016
2 parents 0d2d77b + bb4a29c commit c9652ad
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions src/FakeHttpContext/FakeWorkerRequest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,6 @@ public override int GetLocalPort()
/// <param name="statusCode">The status code to send </param><param name="statusDescription">The status description to send. </param>
public override void SendStatus(int statusCode, string statusDescription)
{
throw new NotImplementedException();
}

/// <summary>
Expand All @@ -143,7 +142,6 @@ public override void SendStatus(int statusCode, string statusDescription)
/// <param name="index">The header index. For example, <see cref="F:System.Web.HttpWorkerRequest.HeaderContentLength"/>. </param><param name="value">The value of the header. </param>
public override void SendKnownResponseHeader(int index, string value)
{
throw new NotImplementedException();
}

/// <summary>
Expand All @@ -152,7 +150,6 @@ public override void SendKnownResponseHeader(int index, string value)
/// <param name="name">The name of the header to send. </param><param name="value">The value of the header. </param>
public override void SendUnknownResponseHeader(string name, string value)
{
throw new NotImplementedException();
}

/// <summary>
Expand All @@ -161,7 +158,6 @@ public override void SendUnknownResponseHeader(string name, string value)
/// <param name="data">The byte array to send. </param><param name="length">The number of bytes to send, starting at the first byte. </param>
public override void SendResponseFromMemory(byte[] data, int length)
{
throw new NotImplementedException();
}

/// <summary>
Expand All @@ -170,7 +166,6 @@ public override void SendResponseFromMemory(byte[] data, int length)
/// <param name="filename">The name of the file to send. </param><param name="offset">The starting position in the file. </param><param name="length">The number of bytes to send. </param>
public override void SendResponseFromFile(string filename, long offset, long length)
{
throw new NotImplementedException();
}

/// <summary>
Expand All @@ -179,7 +174,6 @@ public override void SendResponseFromFile(string filename, long offset, long len
/// <param name="handle">The handle of the file to send. </param><param name="offset">The starting position in the file. </param><param name="length">The number of bytes to send. </param>
public override void SendResponseFromFile(IntPtr handle, long offset, long length)
{
throw new NotImplementedException();
}

/// <summary>
Expand All @@ -188,15 +182,13 @@ public override void SendResponseFromFile(IntPtr handle, long offset, long lengt
/// <param name="finalFlush">true if this is the last time response data will be flushed; otherwise, false. </param>
public override void FlushResponse(bool finalFlush)
{
throw new NotImplementedException();
}

/// <summary>
/// Used by the runtime to notify the <see cref="T:System.Web.HttpWorkerRequest"/> that request processing for the current request is complete.
/// </summary>
public override void EndOfRequest()
{
throw new NotImplementedException();
}

/// <summary>
Expand Down Expand Up @@ -238,4 +230,4 @@ public override string[][] GetUnknownRequestHeaders()
return unknownRequestHeaders;
}
}
}
}

0 comments on commit c9652ad

Please sign in to comment.