Example #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;
        }
Example #2
0
 protected override void OnCreate(ProjectTriggerResource resource)
 {
     _fakeClient.AddResource(FakeProjectRepository.GetProjectTriggersLink(resource.ProjectId), resource);
 }