AppHarbor.Tests.GitRepositoryConfigurerTest.ShouldTryAndSetUpGitRemoteIfPossible C# (CSharp) Method

ShouldTryAndSetUpGitRemoteIfPossible() private method

private ShouldTryAndSetUpGitRemoteIfPossible ( [ gitCommand, [ writer, GitRepositoryConfigurer repositoryConfigurer, User user, string id ) : void
gitCommand [
writer [
repositoryConfigurer GitRepositoryConfigurer
user AppHarbor.Model.User
id string
return void
        public void ShouldTryAndSetUpGitRemoteIfPossible([Frozen]Mock<IGitCommand> gitCommand, [Frozen]Mock<TextWriter> writer, GitRepositoryConfigurer repositoryConfigurer, User user, string id)
        {
            repositoryConfigurer.Configure(id, user);

            writer.Verify(x => x.WriteLine("Added \"appharbor\" as a remote repository. Push to AppHarbor with git push appharbor master."));
            gitCommand.Verify(x => x.Execute(string.Format("remote add appharbor {0}", GetRepositoryUrl(id, user))), Times.Once());
        }