public void SetUp() { _mockFileHelper = MockRepository.GenerateStub<IFileSystemHelper>(); _mockExe = MockRepository.GenerateStub<IExecutable>(); _subject = new NuGetPublisher(_mockFileHelper, _mockExe); _nuGetOptionals = _subject.DeployFolder(new Directory("somedir")).ProjectId("FluentBuild").Version("1.2.3.4").Description("Project 1").Authors("author1").ApiKey("123"); }
public void SetUp() { _mockFileHelper = MockRepository.GenerateStub <IFileSystemHelper>(); _mockExe = MockRepository.GenerateStub <IExecutable>(); _subject = new NuGetPublisher(_mockFileHelper, _mockExe); _nuGetOptionals = _subject.DeployFolder(new Directory("somedir")).ProjectId("FluentBuild").Version("1.2.3.4").Description("Project 1").Authors("author1").ApiKey("123"); }
public void ShouldSetParent() { var nuGetPublisher = new NuGetPublisher(); var subject = new ApiKeyMandatory(nuGetPublisher); NuGetOptionals nuGetOptionals = subject.ApiKey("key"); Assert.That(nuGetPublisher._apiKey, Is.EqualTo("key")); Assert.That(nuGetOptionals, Is.Not.Null); Assert.That(nuGetOptionals._parent, Is.EqualTo(nuGetPublisher)); }
public void SetUp() { _parent = new NuGetPublisher(); _subject = new NuGetOptionals(_parent); }