Skip to content

Commit

Permalink
Rename setAssembly: to setFactory:.
Browse files Browse the repository at this point in the history
  • Loading branch information
rhgills committed Oct 30, 2013
1 parent 12c7f69 commit fcae76d
Show file tree
Hide file tree
Showing 6 changed files with 12,676 additions and 3,426 deletions.
2 changes: 1 addition & 1 deletion Source/Component/TyphoonInjectionAware.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@

@protocol TyphoonInjectionAware <NSObject>

- (void)setAssembly:(id)assembly;
- (void)setFactory:(id)theFactory;

@end
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ - (void)injectAssemblyOnInstanceIfTyphoonAware:(id)instance;

- (void)injectAssemblyOnInstance:(id <TyphoonInjectionAware>)instance;
{
[instance setAssembly:self];
[instance setFactory:self];
}

- (void)markDoneResolvingDefinition:(TyphoonDefinition *)definition;
Expand Down
2 changes: 1 addition & 1 deletion Tests/Component/Injection Aware/InjectionAwareObject.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@

@interface InjectionAwareObject : NSObject <TyphoonInjectionAware>

@property (readonly) id assembly;
@property (readonly) id factory;

@end
8 changes: 4 additions & 4 deletions Tests/Component/Injection Aware/InjectionAwareObject.m
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@
#import "InjectionAwareObject.h"

@implementation InjectionAwareObject {
id assembly;
id factory;
}

@synthesize assembly;
@synthesize factory;

- (void)setAssembly:(id)theAssembly
- (void)setFactory:(id)theFactory
{
assembly = theAssembly;
factory = theFactory;
}

@end
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ - (void)setUp;
- (void)test_reference_to_assembly_set_on_injection_aware_object;
{
object = [factory injectionAwareObject];
assertThat(object.assembly, sameInstance(factory));
assertThat(object.factory, sameInstance(factory));
}

@end
Loading

0 comments on commit fcae76d

Please sign in to comment.