GetLocator() public method

public GetLocator ( ) : string
return string
Ejemplo n.º 1
0
 public BuildHavingBuilder Branch(Action<BranchHavingBuilder> branchHavingBuilder)
 {
     var havingBuilder = new BranchHavingBuilder();
     branchHavingBuilder(havingBuilder);
     m_Having.Add("branch:" + havingBuilder.GetLocator());
     return this;
 }
        public void Unspecified()
        {
            var branchHavingBuilder = new BranchHavingBuilder();

            branchHavingBuilder.Unspecified();

            branchHavingBuilder.GetLocator().Should().Be("unspecified:True");
        }
        public void NotUnspecified()
        {
            var branchHavingBuilder = new BranchHavingBuilder();

            branchHavingBuilder.NotUnspecified();

            branchHavingBuilder.GetLocator().Should().Be("unspecified:False");
        }
        public void DefaultFalse()
        {
            var branchHavingBuilder = new BranchHavingBuilder();

            branchHavingBuilder.NotDefault();

            branchHavingBuilder.GetLocator().Should().Be("default:False");
        }
        public void Default()
        {
            var branchHavingBuilder = new BranchHavingBuilder();

            branchHavingBuilder.Default();

            branchHavingBuilder.GetLocator().Should().Be("default:True");
        }
        public void Branched()
        {
            var branchHavingBuilder = new BranchHavingBuilder();

            branchHavingBuilder.Branched();

            branchHavingBuilder.GetLocator().Should().Be("branched:True");
        }
        public void Name()
        {
            // Arrange
            var branchHavingBuilder = new BranchHavingBuilder();

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

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