Skip to content

Fix StringCommandParameter #144

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 10, 2014

Conversation

rosen-vladimirov
Copy link
Contributor

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

@justcodebuilduser
Copy link

Can one of the admins verify this patch?

1 similar comment
@ns-bot
Copy link

ns-bot commented Nov 10, 2014

Can one of the admins verify this patch?

@rosen-vladimirov rosen-vladimirov force-pushed the vladimirov/fix-hierarchical-commands branch from a6cb7a6 to 804fab9 Compare November 10, 2014 09:04
@ErjanGavalji
Copy link
Contributor

ok to test

@ns-bot
Copy link

ns-bot commented Nov 10, 2014

Test PASSed.

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
@rosen-vladimirov rosen-vladimirov force-pushed the vladimirov/fix-hierarchical-commands branch from 804fab9 to 988fc2a Compare November 10, 2014 11:42
@ns-bot
Copy link

ns-bot commented Nov 10, 2014

Test PASSed.

@Fatme
Copy link
Contributor

Fatme commented Nov 10, 2014

👍

rosen-vladimirov added a commit that referenced this pull request Nov 10, 2014
@rosen-vladimirov rosen-vladimirov merged commit 7844f2c into master Nov 10, 2014
@rosen-vladimirov rosen-vladimirov deleted the vladimirov/fix-hierarchical-commands branch November 10, 2014 12:25
@dtopuzov
Copy link
Contributor

👍

@justcodebuilduser
Copy link

Can one of the admins verify this patch?

@ErjanGavalji
Copy link
Contributor

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants