Try
mockRepository.Setup(x => x.GetByProperty<Account>(“UserName”,
(object)“MyUserName”))
.Returns(new Account { UserName = “MyUserName”});
> On 3 aug. 2016, at 00:22, [email protected] wrote:
>
> mockRepository.Setup(x => x.GetByProperty<Account>(“UserName”, “MyUserName”))
>
> .Returns(new Account { UserName = “MyUserName” });
--
You received this message because you are subscribed to the Google Groups
"nhusers" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/nhusers.
For more options, visit https://groups.google.com/d/optout.