Hi All
I am attempting to write Unit Test for my Database Repository. The backend Db I
use is Firebird. I am wondering how do I mock my FbDataReader Class. I tried
following but it doesn't seem to work
var mockIDbCommand = new Moq.Mock<Medgen.Domain.Abstract.IDBCommand>();
var mockIDataReader = new Moq.Mock<IDataReader>();
mockIDbCommand.SetupGet(i => i.ExecuteReader).Returns(mockIDataReader.Object);
Can anyone please guide me ?
Thanks
Anu
Original issue reported on code.google.com by a...@aimagroup.co.uk on 30 Apr 2015 at 11:14
Original issue reported on code.google.com by
a...@aimagroup.co.uk
on 30 Apr 2015 at 11:14