Пример #1
0
        public void Validate_BaggageWithWrongStatus_AttributeValueExThrown()
        {
            var baggage = BaggageBuilder.Create()
                          .WithDescription("epale")
                          .WithStatus("epale2")
                          .Build();

            Assert.Throws <AttributeValueException>(() =>
            {
                BaggageValidator.Validate(baggage);
            });
        }
Пример #2
0
        public void ValidateUpdate_BaggageWithStatusAndDescription_AttributeValueExThrown()
        {
            var baggage = BaggageBuilder.Create()
                          .WithDescription("epale")
                          .WithStatus("epale2")
                          .Build();

            Assert.Throws <AttributeValueException>(() =>
            {
                BaggageValidator.Validate(baggage, HttpMethod.Put);
            });
        }
Пример #3
0
 public void Execute()
 {
     BaggageValidator.Validate(_baggage, HttpMethod.Put);
 }