public static IRepository<Client> Create()
{
var clientsList = new List<Client>
{
new Client
{
Email = "[email protected]",
UserName = "[email protected]",
FirstName = "TestName",
Id = "123456qwerty"
}
};
var repo = new Mock<IRepository<Client>>();
repo.Setup(x => x.All()).Returns(clientsList.AsQueryable());
repo.Setup(x => x.Find(It.IsAny<Expression<Func<Client, bool>>>())).Returns(clientsList.AsQueryable());
return repo.Object;
}