Skip to content
This repository was archived by the owner on Feb 22, 2018. It is now read-only.

chore(test-bed): Add fromInjector constructor to TestBed. #1271

Merged
merged 1 commit into from
Jul 29, 2014

Conversation

rkirov
Copy link
Contributor

@rkirov rkirov commented Jul 28, 2014

Some clients do not generate static factories for test code, thus
depending on TestBed constructor. The new constructor is basically the
factory method, requiring only injector vs a full set of parameters.

Once clients have been moved to use fromInjector method (or even better
a transformer for test code), we can change the constructor dependencies
in a non-braking way.

@rkirov rkirov added cla: yes and removed cla: no labels Jul 28, 2014
Some clients do not generate static factories for test code, and instead
directly depend on TestBed constructor. This commit adds a new
constructor is basically the injector factory method, requiring only
injector vs a full set of parameters.

Once clients have been moved to use fromInjector method (or even better
a transformer run for test code), we can change the constructor
dependencies in a non-breaking way.

Closes dart-archive#1271
@rkirov rkirov merged commit ee8ecd3 into dart-archive:master Jul 29, 2014
@rkirov rkirov deleted the test-base-from-inj branch July 29, 2014 23:12
rkirov added a commit that referenced this pull request Aug 5, 2014
Some clients do not generate static factories for test code, and instead
directly depend on TestBed constructor. This commit adds a new
constructor is basically the injector factory method, requiring only
injector vs a full set of parameters.

Once clients have been moved to use fromInjector method (or even better
a transformer run for test code), we can change the constructor
dependencies in a non-breaking way.

Closes #1271
dsalsbury pushed a commit to dsalsbury/angular.dart that referenced this pull request Aug 7, 2014
Some clients do not generate static factories for test code, and instead
directly depend on TestBed constructor. This commit adds a new
constructor is basically the injector factory method, requiring only
injector vs a full set of parameters.

Once clients have been moved to use fromInjector method (or even better
a transformer run for test code), we can change the constructor
dependencies in a non-breaking way.

Closes dart-archive#1271
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Development

Successfully merging this pull request may close these issues.

1 participant