Skip to content

Commit f16f1b7

Browse files
committed
Minor refactoring, better method name
1 parent 63432a0 commit f16f1b7

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

UnitTests/CheckParametersUsage.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ public void CanUseParamForScriptFilename()
158158
public void CanUseParamForDelay()
159159
{
160160
var responseCreator = new FileDynamicResponseCreator("file.txt", endpoint);
161-
responseCreator.SetDelayFromString("$delay");
161+
responseCreator.SetDelayFromConfigValue("$delay");
162162

163163
Assert.Equal(0, responseCreator.Delay);
164164
delayParam.Value = "1000";

netmockery/JSONReader.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,8 +189,8 @@ public ResponseCreator CreateResponseCreator(Endpoint endpoint)
189189
{
190190
throw new NotImplementedException();
191191
}
192-
//TODO: Change
193-
responseCreator.SetDelayFromString(delay);
192+
193+
responseCreator.SetDelayFromConfigValue(delay);
194194

195195
var simpleResponseCreator = responseCreator as SimpleResponseCreator;
196196
if (simpleResponseCreator != null)

netmockery/ResponseCreator.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ public int Delay
141141
}
142142
}
143143

144-
public void SetDelayFromString(string value)
144+
public void SetDelayFromConfigValue(string value)
145145
{
146146
_delay = value;
147147
}

0 commit comments

Comments
 (0)