Bari.Core.Test.Commands.HelpTest.SetUp C# (CSharp) Method

SetUp() private method

private SetUp ( ) : void
return void
        public void SetUp()
        {
            kernel = new StandardKernel();
            output = new TestUserOutput();
            kernel.Bind<IUserOutput>().ToConstant(output).InSingletonScope();
            kernel.Bind<IFileSystemDirectory>().ToConstant(new TestFileSystemDirectory("root")).WhenTargetHas
                <SuiteRootAttribute>();
            kernel.Bind<IFileSystemDirectory>().ToConstant(new TestFileSystemDirectory("target")).WhenTargetHas
                <TargetRootAttribute>();
            kernel.Bind<Lazy<IFileSystemDirectory>>().ToConstant(
                new Lazy<IFileSystemDirectory>(() => new TestFileSystemDirectory("cache"))).WhenTargetHas
                <CacheRootAttribute>();

            Kernel.RegisterCoreBindings(kernel);
        }