Exemple #1
0
        public INewProjectDetailsBuilder ParentProject(Action <IBuildProjectHavingBuilder> parentProject)
        {
            var buildProjectHavingBuilder = new BuildProjectHavingBuilder();

            parentProject(buildProjectHavingBuilder);
            m_ParentLocator = buildProjectHavingBuilder.GetLocator();
            return(this);
        }
        public void Name()
        {
            // Arrange
            var buildProjectHavingBuilder = new BuildProjectHavingBuilder();

            // Act
            buildProjectHavingBuilder.Name("ProjectName1");

            // Assert
            buildProjectHavingBuilder.GetLocator().Should().Be("name:ProjectName1");
        }
        public void Id()
        {
            // Arrange
            var buildProjectHavingBuilder = new BuildProjectHavingBuilder();

            // Act
            buildProjectHavingBuilder.Id("ProjectId1");

            // Assert
            buildProjectHavingBuilder.GetLocator().Should().Be("id:ProjectId1");
        }