| | | 1 | | using System; |
| | | 2 | | using System.Globalization; |
| | | 3 | | using JetBrains.Annotations; |
| | | 4 | | |
| | | 5 | | // copied from https://github.com/aspnet/EntityFramework/blob/dev/src/Microsoft.EntityFrameworkCore/Properties/CoreStrin |
| | | 6 | | namespace WireMock.Validation |
| | | 7 | | { |
| | | 8 | | // [ExcludeFromCodeCoverage] |
| | | 9 | | internal static class CoreStrings |
| | | 10 | | { |
| | | 11 | | /// <summary> |
| | | 12 | | /// The property '{property}' of the argument '{argument}' cannot be null. |
| | | 13 | | /// </summary> |
| | | 14 | | public static string ArgumentPropertyNull([CanBeNull] string property, [CanBeNull] string argument) |
| | 0 | 15 | | { |
| | 0 | 16 | | return string.Format(CultureInfo.CurrentCulture, $"The property '{property}' of the argument '{argument}' ca |
| | 0 | 17 | | } |
| | | 18 | | |
| | | 19 | | /// <summary> |
| | | 20 | | /// The string argument '{argumentName}' cannot be empty. |
| | | 21 | | /// </summary> |
| | | 22 | | public static string ArgumentIsEmpty([CanBeNull] string argumentName) |
| | 0 | 23 | | { |
| | 0 | 24 | | return string.Format(CultureInfo.CurrentCulture, $"The string argument '{argumentName}' cannot be empty.", a |
| | 0 | 25 | | } |
| | | 26 | | |
| | | 27 | | /// <summary> |
| | | 28 | | /// The entity type '{type}' provided for the argument '{argumentName}' must be a reference type. |
| | | 29 | | /// </summary> |
| | | 30 | | public static string InvalidEntityType([CanBeNull] Type type, [CanBeNull] string argumentName) |
| | 0 | 31 | | { |
| | 0 | 32 | | return string.Format(CultureInfo.CurrentCulture, $"The entity type '{type}' provided for the argument '{argu |
| | 0 | 33 | | } |
| | | 34 | | |
| | | 35 | | /// <summary> |
| | | 36 | | /// The collection argument '{argumentName}' must contain at least one element. |
| | | 37 | | /// </summary> |
| | | 38 | | public static string CollectionArgumentIsEmpty([CanBeNull] string argumentName) |
| | 0 | 39 | | { |
| | 0 | 40 | | return string.Format(CultureInfo.CurrentCulture, $"The collection argument '{argumentName}' must contain at |
| | 0 | 41 | | } |
| | | 42 | | } |
| | | 43 | | } |