Skip to content

Commit b06e014

Browse files
committed
Object initializer syntax
1 parent 6ca8d75 commit b06e014

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

netmockery/JSONReader.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -267,8 +267,10 @@ public class JSONEndpoint
267267

268268
public Endpoint CreateEndpoint(string rootDir, JSONDefaults globalDefaults)
269269
{
270-
var endpoint = new Endpoint(name, pathregex);
271-
endpoint.Directory = rootDir;
270+
var endpoint = new Endpoint(name, pathregex)
271+
{
272+
Directory = rootDir
273+
};
272274

273275
var endpointDefaultsFile = Path.Combine(rootDir, "defaults.json");
274276
var endpointDefaults =

0 commit comments

Comments
 (0)