I am trying to Moq
to test abstract class method
.
var mock = new Mock<BaseStudentController>();
mock.CallBase = true;
var ta = mock.Object;
var result = await ta.ActivateStudent"User1@test.com", true);
This successfully mocks the base class, and it hits the method in my abstract class.
Problem:
However, my abstract class is also expecting Request.GetOwinContext
. I am not sure how i can moq it along with my above request.
Aucun commentaire:
Enregistrer un commentaire