Exemplo n.º 1
0
    public void TestNinjectConventions()
    {
        var kernel = new StandardKernel();

        kernel.BindExportsInAssembly(typeof(IFoo).Assembly);
        kernel.Get <IFoo>().Should().Be(kernel.Get <IFoo>());
        kernel.Get <IBar>().Should().NotBe(kernel.Get <IBar>());
    }