mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-02-25 11:44:50 +01:00
RegexExampleValueGenerator
This commit is contained in:
@@ -18,7 +18,7 @@ class Program
|
||||
private static void RunMockServerWithDynamicExampleGeneration()
|
||||
{
|
||||
// Run your mocking framework specifying your Example Values generator class.
|
||||
var serverCustomer_V2_json = Run.RunServer(Path.Combine(Folder, "Swagger_Customer_V2.0.json"), "http://localhost:8090/", true, new DynamicDataGeneration(), Types.ExampleValueType.Value, Types.ExampleValueType.Value);
|
||||
var serverCustomer_V2_json = Run.RunServer(Path.Combine(Folder, "Swagger_Customer_V2.0.json"), "http://localhost:8090/", true, new DynamicDataGeneration(), Types.PatternType.Value, Types.PatternType.Value);
|
||||
Console.WriteLine("Press any key to stop the servers");
|
||||
|
||||
Console.ReadKey();
|
||||
|
||||
@@ -18,8 +18,8 @@ public static class Run
|
||||
string url,
|
||||
bool dynamicExamples = true,
|
||||
IWireMockOpenApiParserExampleValues? examplesValuesGenerator = null,
|
||||
ExampleValueType pathPatternToUse = ExampleValueType.Wildcard,
|
||||
ExampleValueType headerPatternToUse = ExampleValueType.Wildcard
|
||||
PatternType pathPatternToUse = PatternType.Wildcard,
|
||||
PatternType headerPatternToUse = PatternType.Wildcard
|
||||
)
|
||||
{
|
||||
var server = WireMockServer.Start(new WireMockServerSettings
|
||||
|
||||
Reference in New Issue
Block a user