Ejemplo n.º 1
0
        public void Matches_returns_true_for_a_label_with_one_of_the_specified_names(string nameOne,
                                                                                     string nameTwo,
                                                                                     Label label)
        {
            // Arrange
            var sut = new LabelNameIn(new [] { nameOne, nameTwo });

            label.Name = nameOne;

            // Act
            var result = sut.Matches(label);

            // Assert
            Assert.That(result, Is.True);
        }
Ejemplo n.º 2
0
        public override IReadOnlyCollection <Label> GetLabels(IReadOnlyCollection <string> labelNames)
        {
            var spec = new LabelNameIn(labelNames);

            return(entityData.Query <Label>().Where(spec).ToList());
        }