From 988fc2a7adf0285e331d8ca78e160b735fead211 Mon Sep 17 00:00:00 2001 From: rosen-vladimirov Date: Mon, 10 Nov 2014 09:01:43 +0200 Subject: [PATCH] Fix StringCommandParameter Update common lib where the following change is applied: when injector tries to resolve StringCommandParamater, it raises error as it's unable to use the current constructor. Add StringParameterBuilder class that is used to generate string parameters. Add createMandatoryParameter method to it, so it will generate mandatory parameter with specified error message. Add IStringParameterBuilder interface. The idea is to use stringParameter from injector resolver when the parameter will not be mandatory and to use the builder when a more complicated logic is needed. Also fixed FileSystemStub as it had to implement new method from IFileSystem --- lib/common | 2 +- test/stubs.ts | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/common b/lib/common index 885bdcd12a..915d5872e0 160000 --- a/lib/common +++ b/lib/common @@ -1 +1 @@ -Subproject commit 885bdcd12afaf3bfa82a5633c704a1c77634fb6a +Subproject commit 915d5872e06e0ca4a642b1f0df5e9aa9a28344f7 diff --git a/test/stubs.ts b/test/stubs.ts index dc8fa0aef8..9cdef9d031 100644 --- a/test/stubs.ts +++ b/test/stubs.ts @@ -115,6 +115,10 @@ export class FileSystemStub implements IFileSystem { rename(oldPath: string, newPath: string): IFuture { return undefined; } + + symlink(sourePath: string, destinationPath: string): IFuture { + return undefined; + } } export class ErrorsStub implements IErrors {