From 43c4d05a6a717c17428d23c83f5de18c092098c5 Mon Sep 17 00:00:00 2001 From: Michael Noonan Date: Fri, 13 May 2016 14:09:30 +1000 Subject: [PATCH] Fix tests. :( --- .../Commands/CreateChannelCommandFixture.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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}");