Пример #1
0
        public void RequestActionList_CanSet()
        {
            // Act
            string queryString = new LabelQueryStringBuilder()
                                 .SetRequestAction(LabelRequestAction.List)
                                 .Build();

            // Assert
            queryString.Should().Be(Path);
        }
Пример #2
0
        public void AllLabelFields_ReturnsNoValue()
        {
            // Act
            string queryString = new LabelQueryStringBuilder()
                                 .SetFields(LabelFields.All)
                                 .Build();

            // Assert
            queryString.Should().Be(Path);
        }
Пример #3
0
        public void RequestActionGet_CanSet()
        {
            // Act
            const string id          = "id";
            string       queryString = new LabelQueryStringBuilder()
                                       .SetRequestAction(LabelRequestAction.Get, id)
                                       .Build();

            // Assert
            queryString.Should().Be(Path + "/" + id);
        }