public SshManager(IGameletClientFactory gameletClientFactory, ICloudRunner cloudRunner, ISshKeyLoader sshKeyLoader, ISshKnownHostsWriter sshKnownHostsWriter, IRemoteCommand remoteCommand) { this.gameletClientFactory = gameletClientFactory; this.cloudRunner = cloudRunner; this.sshKeyLoader = sshKeyLoader; this.sshKnownHostsWriter = sshKnownHostsWriter; this.remoteCommand = remoteCommand; }
public void SetUp() { gameletClient = Substitute.For <IGameletClient>(); gameletClientFactory = Substitute.For <GameletClient.Factory>(); gameletClientFactory.Create(Arg.Any <ICloudRunner>()).Returns(gameletClient); cloudRunner = Substitute.For <ICloudRunner>(); sshKeyLoader = Substitute.For <ISshKeyLoader>(); sshKnownHostsWriter = Substitute.For <ISshKnownHostsWriter>(); remoteCommand = Substitute.For <IRemoteCommand>(); sshManager = new SshManager(gameletClientFactory, cloudRunner, sshKeyLoader, sshKnownHostsWriter, remoteCommand); }