Skip to content

Commit

Permalink
Fix tests. :(
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelnoonan committed May 13, 2016
1 parent a55c0a5 commit 43c4d05
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions source/Octopus.Cli.Tests/Commands/CreateChannelCommandFixture.cs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public void ShouldCreateNewChannel()
var lifecycleName = $"Lifecycle-{Guid.NewGuid()}";
Repository.Lifecycles.FindOne(Arg.Any<Func<LifecycleResource, bool>>()).Returns(new LifecycleResource());

Repository.Client.List<ChannelResource>(Arg.Any<string>(), Arg.Any<object>())
Repository.Projects.GetChannels(Arg.Any<ProjectResource>())
.Returns(new ResourceCollection<ChannelResource>(Enumerable.Empty<ChannelResource>(), new LinkCollection()));

var channelName = $"Channel-{Guid.NewGuid()}";
Expand All @@ -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()
{
Expand All @@ -96,7 +96,7 @@ public void ShouldUpdateExistingChannel()
Name = channelName
};

Repository.Client.List<ChannelResource>(Arg.Any<string>(), Arg.Any<object>())
Repository.Projects.GetChannels(Arg.Any<ProjectResource>())
.Returns(new ResourceCollection<ChannelResource>(new[] { channel }, new LinkCollection()));

CommandLineArgs.Add($"--channel={channelName}");
Expand Down

0 comments on commit 43c4d05

Please sign in to comment.