Name() public method

public Name ( string branchName ) : IBranchHavingBuilder
branchName string
return IBranchHavingBuilder
        public void Name()
        {
            var branchHavingBuilder = new BranchHavingBuilder();
            var havingBuilder = branchHavingBuilder.Name("Branch1");

            var locator = havingBuilder.GetLocator();

            locator.Should().Be("name:Branch1");
        }
        public void Name()
        {
            // Arrange
            var branchHavingBuilder = new BranchHavingBuilder();

            // Act
            branchHavingBuilder.Name("Branch1");

            // Assert
            branchHavingBuilder.GetLocator().Should().Be("name:Branch1");
        }