public void ExecuteReader_NullCommandSettings_ArgumentNullExceptionThrown() { var runner = new SqlRunner(new MyUnitOfWork()); Action act = () => runner.ExecuteReader <TestModel>(null); act.Should().Throw <ArgumentNullException>(CMD_EX); }
public void ExecuteReader_EmptyCommandText_ArgumentNullExceptionThrown(string commandText) { var runner = new SqlRunner(new MyUnitOfWork()); Action act = () => runner.ExecuteReader <TestModel>(new CommandSettings(commandText)); act.Should().Throw <ArgumentException>(CMD_TEXT_EX); }