public async Task ReturnNotOkDbStatusAndLogErrorOnGetWhenExceptionThrownOnExecuteScalar() { // arrange var expectedException = new Exception("test"); _fakeAdoHelper.Setup(o => o.ExecuteScalarAsync(_fakeDbCommand.Object)).ThrowsAsync(expectedException); // act var result = await _target.Get(); // assert result.DbStatus.Should().NotBe("OK"); LogAssert.AssertInfo(_fakeLogger, Times.AtLeastOnce); LogAssert.AssertError(_fakeLogger, expectedException, Times.Once); }