Пример #1
0
        protected override void beforeEach()
        {
            thePackages = new List <StubBottle>();

            hasPackage("C");
            hasPackage("B");
            hasPackage("A");

            theDiagnostics = new StubBottleDiagnostics();
        }
        protected override void beforeEach()
        {
            diagnostics = new StubBottleDiagnostics();
            Services.Inject <IBottlingDiagnostics>(diagnostics);

            loader1 = new StubPackageLoader("1a", "1b", "1c");
            loader2 = new StubPackageLoader("2a", "2b");
            loader3 = new StubPackageLoader("1a", "2b");

            ClassUnderTest.PushProvenance("A");
            ClassUnderTest.AddLoader(loader1);

            ClassUnderTest.PushProvenance("B");
            ClassUnderTest.AddLoader(loader2);

            ClassUnderTest.PopProvenance();
            ClassUnderTest.AddLoader(loader3);

            foundPackages = ClassUnderTest.FindAllPackages();
        }