public void SetUp() { stringifier = new Stringifier(); locator = new InMemoryServiceLocator(); }
public void Configure(Stringifier stringifier) { _strategies.Each(s => stringifier.AddStrategy(s)); }
public DisplayConversionRegistryActivator(IEnumerable<DisplayConversionRegistry> registries, Stringifier stringifier) { _registries = registries; _stringifier = stringifier; }
// IServiceLocator should be injected into the constructor as // a dependency public DisplayFormatter(IServiceLocator locator, Stringifier stringifier) { _locator = locator; _stringifier = stringifier; }