"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const core_1 = require("@vived/core");
const Entities_1 = require("../Entities");
const StickAllChannelModelObjectsUCMock_1 = require("../Mocks/StickAllChannelModelObjectsUCMock");
const stickAllActiveObjects_1 = require("./stickAllActiveObjects");
function makeTestRig() {
    const appObjects = (0, core_1.makeAppObjectRepo)();
    const repo = (0, Entities_1.makeChannelModelRepo)(appObjects.getOrCreate("Repo"));
    const uc = new StickAllChannelModelObjectsUCMock_1.StickAllChannelModelObjectsUCMock(appObjects.getOrCreate("aModel"));
    repo.activeModel = "aModel";
    return { appObjects, repo, uc };
}
describe("Stick all Active Model Objects Controller", () => {
    it("Triggers the UC", () => {
        const { uc, appObjects } = makeTestRig();
        (0, stickAllActiveObjects_1.stickAllActiveObjects)(appObjects);
        expect(uc.stickAll).toHaveBeenCalled();
    });
});
//# sourceMappingURL=stickAllActiveObjects.test.js.map