diff --git a/source/Octopus.Cli.Tests/Commands/CreateChannelCommandFixture.cs b/source/Octopus.Cli.Tests/Commands/CreateChannelCommandFixture.cs index 1db4ffa87..d5ab00e7f 100644 --- a/source/Octopus.Cli.Tests/Commands/CreateChannelCommandFixture.cs +++ b/source/Octopus.Cli.Tests/Commands/CreateChannelCommandFixture.cs @@ -57,7 +57,7 @@ public void ShouldCreateNewChannel() var lifecycleName = $"Lifecycle-{Guid.NewGuid()}"; Repository.Lifecycles.FindOne(Arg.Any>()).Returns(new LifecycleResource()); - Repository.Client.List(Arg.Any(), Arg.Any()) + Repository.Projects.GetChannels(Arg.Any()) .Returns(new ResourceCollection(Enumerable.Empty(), new LinkCollection())); var channelName = $"Channel-{Guid.NewGuid()}"; @@ -72,12 +72,12 @@ public void ShouldCreateNewChannel() [Test] public void ShouldUpdateExistingChannel() - { + { Repository.Client.RootDocument.Returns(new RootResource { Links = new LinkCollection().Add("Channels", "DOES_NOT_MATTER") - }); - + }); + var projectName = $"Project-{Guid.NewGuid()}"; var project = new ProjectResource() { @@ -96,7 +96,7 @@ public void ShouldUpdateExistingChannel() Name = channelName }; - Repository.Client.List(Arg.Any(), Arg.Any()) + Repository.Projects.GetChannels(Arg.Any()) .Returns(new ResourceCollection(new[] { channel }, new LinkCollection())); CommandLineArgs.Add($"--channel={channelName}");