mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-04-17 22:19:39 +02:00
FindLogEntries and refactored some code (#34)
This commit is contained in:
@@ -5,7 +5,6 @@ using System.Linq;
|
||||
using System.Text;
|
||||
using JetBrains.Annotations;
|
||||
using Newtonsoft.Json;
|
||||
using SimMetrics.Net;
|
||||
using WireMock.Admin.Mappings;
|
||||
using WireMock.Admin.Requests;
|
||||
using WireMock.Admin.Settings;
|
||||
@@ -431,7 +430,9 @@ namespace WireMock.Server
|
||||
{
|
||||
var requestMatchResult = new RequestMatchResult();
|
||||
if (request.GetMatchingScore(logEntry.RequestMessage, requestMatchResult) > 0.99)
|
||||
{
|
||||
dict.Add(logEntry, requestMatchResult);
|
||||
}
|
||||
}
|
||||
|
||||
var result = dict.OrderBy(x => x.Value.AverageTotalScore).Select(x => x.Key);
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
using System;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace WireMock.Server
|
||||
{
|
||||
@@ -41,11 +40,5 @@ namespace WireMock.Server
|
||||
/// </summary>
|
||||
/// <param name="provider">The provider.</param>
|
||||
void RespondWith(IResponseProvider provider);
|
||||
|
||||
///// <summary>
|
||||
///// The respond with.
|
||||
///// </summary>
|
||||
///// <param name="provider">The provider.</param>
|
||||
//Task RespondWithAsync(IResponseProvider provider);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user