public void Validate_BaggageWithWrongStatus_AttributeValueExThrown() { var baggage = BaggageBuilder.Create() .WithDescription("epale") .WithStatus("epale2") .Build(); Assert.Throws <AttributeValueException>(() => { BaggageValidator.Validate(baggage); }); }
public void ValidateUpdate_BaggageWithStatusAndDescription_AttributeValueExThrown() { var baggage = BaggageBuilder.Create() .WithDescription("epale") .WithStatus("epale2") .Build(); Assert.Throws <AttributeValueException>(() => { BaggageValidator.Validate(baggage, HttpMethod.Put); }); }
public void Execute() { BaggageValidator.Validate(_baggage, HttpMethod.Put); }