That might be a better question for the Castle Project team, rather than this forum.
Craig -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Bill Barry Sent: Friday, 17 April 2009 1:42 p.m. To: [email protected] Subject: [ccnet-user] What am I doing wrong? Why does this test fail? [Test] public void RepositoryIsOverriddenCorrectly() { var _container = new WindsorContainer(); _container.Register( Component.For(typeof(IRepository<>)).ImplementedBy(typeof(Repository<>)).Nam ed("Repository"), Component.For(typeof(IRepository<>)).ImplementedBy(typeof(ProvidedRepository <>)) .ServiceOverrides(ServiceOverride.ForKey("Repository")).OverWrite() ); var repository = _container.Resolve<IRepository<Customer>>(); Assert.IsTrue(repository is ProvidedRepository<Customer>, "form should be " + typeof(ProvidedRepository<Customer>) + " but was " + repository.GetType()); }
