Пример #1
0
        public FakeOctopusRepository()
        {
            var fakeVariableSetRepository       = new FakeVariableSetRepository();
            var fakeDeploymentProcessRepository = new FakeDeploymentProcessRepository();
            var fakeProjectTriggersRepository   = new FakeProjectTriggersRepository();
            var fakeOctopusClient = new FakeOctopusClient();

            MachinePolicies     = new FakeMachinePolicyRepository();
            DeploymentProcesses = fakeDeploymentProcessRepository;
            ProjectGroups       = new FakeProjectGroupRepository();
            VariableSets        = fakeVariableSetRepository;
            LibraryVariableSets = new FakeLibraryVariableSetRepository(fakeVariableSetRepository);
            Projects            = new FakeProjectRepository(fakeVariableSetRepository, fakeDeploymentProcessRepository, fakeProjectTriggersRepository);
            Lifecycles          = new FakeLifecycleRepository();
            Environments        = new FakeEnvironmentRepository();
            MachineRoles        = new FakeMachineRoleRepository();
            Machines            = new FakeMachineRepository();
            UserRoles           = new FakeUserRolesRepository();
            Teams           = new FakeTeamsRepository();
            Users           = new FakeUsersRepository();
            ProjectTriggers = fakeProjectTriggersRepository;
            Channels        = new FakeChannelRepository();
            TagSets         = new FakeTagSetsRepository();
            Tenants         = new FakeTenantsRepository();
            Client          = fakeOctopusClient;
        }
Пример #2
0
 public FakeProjectTriggersRepository(FakeOctopusClient fakeClient)
 {
     _fakeClient = fakeClient;
 }