public void it_has_the_factory_should_return_the_factory() { all_the_factories[typeof (IStub)] = factory; factories = new DependecyFactories(all_the_factories, missing_dependency_error_handler); result = factories.get_factory_to_create(typeof (IStub)); Assert.AreEqual(result, factory); }
public void it_has_the_factory_should_return_the_factory() { all_the_factories[typeof(IStub)] = factory; factories = new DependecyFactories(all_the_factories, missing_dependency_error_handler); result = factories.get_factory_to_create(typeof(IStub)); Assert.AreEqual(result, factory); }
public void it_does_not_have_the_factory_should_throw_an_exception() { created_exception = new Exception(); missing_dependency_error_handler = x => { Assert.AreEqual(x, typeof(IDbConnection)); return created_exception; }; factories = new DependecyFactories(all_the_factories, missing_dependency_error_handler); factories.get_factory_to_create(typeof (IDbConnection)); }
public void it_does_not_have_the_factory_should_throw_an_exception() { created_exception = new Exception(); missing_dependency_error_handler = x => { Assert.AreEqual(x, typeof(IDbConnection)); return(created_exception); }; factories = new DependecyFactories(all_the_factories, missing_dependency_error_handler); factories.get_factory_to_create(typeof(IDbConnection)); }