using System; using System.Net; // ReSharper disable once CheckNamespace namespace WireMock.Admin.Mappings; /// /// ResponseModelBuilder /// public partial class ResponseModelBuilder { /// /// Set the StatusCode. /// public ResponseModelBuilder WithStatusCode(int value) => WithStatusCode(() => value); /// /// Set the StatusCode. /// public ResponseModelBuilder WithStatusCode(HttpStatusCode value) => WithStatusCode(() => value); /// /// Set the Delay. /// public ResponseModelBuilder WithDelay(TimeSpan value) => WithDelay((int) value.TotalMilliseconds); /// /// Set the MinimumRandomDelay. /// public ResponseModelBuilder WithMinimumRandomDelay(TimeSpan value) => WithMinimumRandomDelay((int)value.TotalMilliseconds); /// /// Set the MaximumRandomDelay. /// public ResponseModelBuilder WithMaximumRandomDelay(TimeSpan value) => WithMaximumRandomDelay((int)value.TotalMilliseconds); }