mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-04-24 09:48:51 +02:00
update /random example
This commit is contained in:
@@ -407,14 +407,16 @@ namespace WireMock.Net.ConsoleApplication
|
|||||||
TimeSpan1 = "{{Random Type=\"TimeSpan\" Format=\"c\" IncludeMilliseconds=false}}",
|
TimeSpan1 = "{{Random Type=\"TimeSpan\" Format=\"c\" IncludeMilliseconds=false}}",
|
||||||
TimeSpan2 = "{{Random Type=\"TimeSpan\"}}",
|
TimeSpan2 = "{{Random Type=\"TimeSpan\"}}",
|
||||||
DateTime1 = "{{Random Type=\"DateTime\"}}",
|
DateTime1 = "{{Random Type=\"DateTime\"}}",
|
||||||
DateTime2 = DateTime.Now,
|
DateTimeNow = DateTime.Now,
|
||||||
DateTime3 = DateTime.Now.ToString("s", CultureInfo.InvariantCulture),
|
DateTimeToString = DateTime.Now.ToString("s", CultureInfo.InvariantCulture),
|
||||||
Guid1 = "{{Random Type=\"Guid\" Uppercase=false}}",
|
Guid1 = "{{Random Type=\"Guid\" Uppercase=false}}",
|
||||||
Guid2 = "{{Random Type=\"Guid\"}}",
|
Guid2 = "{{Random Type=\"Guid\"}}",
|
||||||
Integer1 = "{{Random Type=\"Integer\" Min=1000 Max=9999}}",
|
Integer1 = "{{Random Type=\"Integer\" Min=1000 Max=9999}}",
|
||||||
Integer2 = "{{#Random Type=\"Integer\" Min=10000000 Max=99999999}}{{this}}{{/Random}}",
|
Integer2 = "{{#Random Type=\"Integer\" Min=10000000 Max=99999999}}{{this}}{{/Random}}",
|
||||||
Double1 = "{{Random Type=\"Double\" Min=10 Max=99}}",
|
Double1 = "{{Random Type=\"Double\" Min=10 Max=99}}",
|
||||||
Double2 = "{{Random Type=\"Double\" Min=100 Max=999}}"
|
Double2 = "{{Random Type=\"Double\" Min=100 Max=999}}",
|
||||||
|
IP4Address = "{{Random Type=\"IPv4Address\"}}",
|
||||||
|
IP6Address = "{{Random Type=\"IPv6Address\"}}"
|
||||||
})
|
})
|
||||||
.WithTransformer()
|
.WithTransformer()
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user