public void Activate() { var provider = _dependencies.BuildProvider(); var repository = provider.Activate(typeof(FooRepository)); Assert.NotNull(repository); Assert.IsType <FooRepository>(repository); }