public void GetProgramRequests_WhenDatabaseThrowsError_ShouldThrowException() { //Arrange mockDataAccess .Setup(x => x.GetDataSet( It.IsAny <string>(), "prc_ISISProgramRequestsGet", It.IsAny <CommandType>(), It.IsAny <SqlParameter[]>())) .Throws <Exception>(); //Act and Assert Assert.Throws <Exception>(() => programRequest.GetProgramRequests("someString")); mockExceptionHandling.VerifyAll(); }