public void ReturnInValidWhenInvalidInputPassed(GetTodaysInstrumentInfoQuery input) { //Arrange var validator = new GetTodaysInstrumentInfoQueryValidator(); //Act var validationResult = validator.Validate(input); //Assert validationResult.IsValid.Should().BeFalse("Validation failed"); }
public void ReturnValidWhenValidInputPassed() { //Arrange var validator = new GetTodaysInstrumentInfoQueryValidator(); //Act var validationResult = validator.Validate(new GetTodaysInstrumentInfoQuery { SymbolName = "INFY", ContractExpiryDate = new DateTime(2020, 5, 28) }); //Assert validationResult.IsValid.Should().BeTrue("Validation Passed"); }