Add link to TIOBE Index on main page + fix issues (#1137)

* Add TIOBE + include SonarAnalyzer.CSharp

* .

* cp

* Copyright © WireMock.Net

* more fixes

* fix

* xpath

* if (Matchers == null || !Matchers.Any())

* if (Matchers != null)

* ?

* .

* .
This commit is contained in:
Stef Heyenrath
2024-07-18 18:06:04 +02:00
committed by GitHub
parent baac83c9b9
commit 54edf0bebc
573 changed files with 1294 additions and 172 deletions

View File

@@ -1,3 +1,5 @@
// Copyright © WireMock.Net
using System;
using System.Collections.Generic;
using WireMock.Models;

View File

@@ -1,3 +1,5 @@
// Copyright © WireMock.Net and mock4net by Alexandre Victoor
// This source file is based on mock4net by Alexandre Victoor which is licensed under the Apache 2.0 License.
// For more details see 'mock4net/LICENSE.txt' and 'mock4net/readme.md' in this project root.
using System;

View File

@@ -1,3 +1,5 @@
// Copyright © WireMock.Net
using System;
using System.Collections.Generic;
using System.IO;

View File

@@ -1,3 +1,5 @@
// Copyright © WireMock.Net
using System.IO;
using System.Linq;
using System.Net;

View File

@@ -1,3 +1,5 @@
// Copyright © WireMock.Net
using System;
using System.Collections.Generic;
using System.Linq;
@@ -37,8 +39,8 @@ public partial class WireMockServer
private Guid? ConvertMappingAndRegisterAsRespondProvider(MappingModel mappingModel, Guid? guid = null, string? path = null)
{
Guard.NotNull(mappingModel);
Guard.NotNull(mappingModel.Request, nameof(mappingModel.Request));
Guard.NotNull(mappingModel.Response, nameof(mappingModel.Response));
Guard.NotNull(mappingModel.Request);
Guard.NotNull(mappingModel.Response);
var requestBuilder = InitRequestBuilder(mappingModel.Request, true);
if (requestBuilder == null)

View File

@@ -1,3 +1,5 @@
// Copyright © WireMock.Net
using System;
using System.Collections.Generic;
using System.IO;
@@ -23,7 +25,7 @@ public partial class WireMockServer
[PublicAPI]
public void ReadStaticWireMockOrgMappingAndAddOrUpdate(string path)
{
Guard.NotNull(path, nameof(path));
Guard.NotNull(path);
var filenameWithoutExtension = Path.GetFileNameWithoutExtension(path);

View File

@@ -1,3 +1,5 @@
// Copyright © WireMock.Net
using System;
using System.Collections;
using System.Collections.Generic;

View File

@@ -1,3 +1,5 @@
// Copyright © WireMock.Net
using System.Net;
#if OPENAPIPARSER
using System;

View File

@@ -1,3 +1,5 @@
// Copyright © WireMock.Net
using System;
using System.Net.Http;
using System.Threading.Tasks;

View File

@@ -1,3 +1,5 @@
// Copyright © WireMock.Net and mock4net by Alexandre Victoor
// This source file is based on mock4net by Alexandre Victoor which is licensed under the Apache 2.0 License.
// For more details see 'mock4net/LICENSE.txt' and 'mock4net/readme.md' in this project root.
using System;
@@ -254,7 +256,7 @@ public partial class WireMockServer : IWireMockServer
[PublicAPI]
public static WireMockServer Start(params string[] urls)
{
Guard.NotNullOrEmpty(urls, nameof(urls));
Guard.NotNullOrEmpty(urls);
return new WireMockServer(new WireMockServerSettings
{
@@ -520,8 +522,8 @@ public partial class WireMockServer : IWireMockServer
[PublicAPI]
public void SetBasicAuthentication(string username, string password)
{
Guard.NotNull(username, nameof(username));
Guard.NotNull(password, nameof(password));
Guard.NotNull(username);
Guard.NotNull(password);
_options.AuthenticationMatcher = new BasicAuthenticationMatcher(username, password);
}