I have this Method that I am testing, test if its just getting the data from database. Kinda looking for suggestions to maybe on my unit test below. I am still new on unit test.
[TestMethod()]
public void GetUnprocessedDataTest()
{
using (var db =new ManualWithDrawDataContext())
{
var results = _test.GetUnprocessedData(db);
Assert.AreEqual(true, results.Any());
}
}
//Method to test
public IQueryable<CouncilRefundCase> GetUnprocessedData(ManualWithDrawDataContext db)
{
var dataLCases = db.CouncilRefundCases.Where(x => x.ProcessStatusId == (int?)ProcessStatus.Unprocessed);
return dataLCases;
}