public void DoesNotThrowWhenRequestIsValid() { var request = new JourneyRequest { FareId = "123abc", JourneyId = "DEF456" }; Assert.DoesNotThrow(() => _validator.Validate(request)); }
public void ThrowsWhenInvalidDataRequest(string journeyId, string fareId) { var request = new JourneyRequest { FareId = fareId, JourneyId = journeyId }; Assert.Throws <InvalidJourneyInformationException>(() => { this._validator.Validate(request); }); }