private Mock <IHellolingoEntities> GetEntitiesMockForEmailValidationTests(List <User> userData)
        {
            var entitiesMock = new Mock <IHellolingoEntities>();
            var usersMock    = DbSetMockHelper.GetDbSetMock(userData);

            usersMock.Setup(u => u.FindAsync(It.IsAny <int>())).ReturnsAsync(userData.FirstOrDefault());
            entitiesMock.Setup(e => e.Users).Returns(usersMock.Object);
            return(entitiesMock);
        }
 private Mock <DbSet <User> > GetUsersDbSetMock(IEnumerable <User> usersData)
 {
     return(DbSetMockHelper.GetDbSetMock(usersData));
 }