I have this method in my C# code:
public virtual bool VarselDAL_HentAvtaleForVarsling(
DateTime varselDato,
out AvtaleForVarsling avtaleForVarsling)
which I'm trying to moq the service call. But I'm facing trouble with the out
-parameter of my method.
Can anyone please hit me with right generics? I tried this one but of no use:
resMock.Setup(
res => res.VarselDAL_HentAvtaleForVarsling(It.IsAny<DateTime>(), out _avtale))
.Returns(true).AtMostOnce().Verifiable()