상속: OptionBase
예제 #1
0
 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");
 }
예제 #3
0
        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));
        }
예제 #4
0
 public void SetUp()
 {
     _parent = new NuGetPublisher();
     _subject = new NuGetOptionals(_parent);
 }
예제 #5
0
 public void SetUp()
 {
     _parent  = new NuGetPublisher();
     _subject = new NuGetOptionals(_parent);
 }