コード例 #1
0
ファイル: StringifierTester.cs プロジェクト: rasupit/fubucore
 public void SetUp()
 {
     stringifier = new Stringifier();
     locator = new InMemoryServiceLocator();
 }
コード例 #2
0
 public void Configure(Stringifier stringifier)
 {
     _strategies.Each(s => stringifier.AddStrategy(s));
 }
コード例 #3
0
 public DisplayConversionRegistryActivator(IEnumerable<DisplayConversionRegistry> registries, Stringifier stringifier)
 {
     _registries = registries;
     _stringifier = stringifier;
 }
コード例 #4
0
 // IServiceLocator should be injected into the constructor as
 // a dependency
 public DisplayFormatter(IServiceLocator locator, Stringifier stringifier)
 {
     _locator = locator;
     _stringifier = stringifier;
 }
コード例 #5
0
 // IServiceLocator should be injected into the constructor as
 // a dependency
 public DisplayFormatter(IServiceLocator locator, Stringifier stringifier)
 {
     _locator     = locator;
     _stringifier = stringifier;
 }