import { makeAppObjectRepo } from "@vived/core";
import { makeChannelModelRepo } from "../Entities";
import { StickAllChannelModelObjectsUCMock } from "../Mocks/StickAllChannelModelObjectsUCMock";
import { stickAllActiveObjects } from "./stickAllActiveObjects";
function makeTestRig() {
    const appObjects = makeAppObjectRepo();
    const repo = makeChannelModelRepo(appObjects.getOrCreate("Repo"));
    const uc = new 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();
        stickAllActiveObjects(appObjects);
        expect(uc.stickAll).toHaveBeenCalled();
    });
});
//# sourceMappingURL=stickAllActiveObjects.test.js.map