public void ReturnAllUsers()
        {
            var userRepository = new UserRepositoryMock().GetUserRepoMockedInstance();

            var result = userRepository.GetAllUsers();

            Assert.AreEqual(2, result.Count());
            Assert.AreEqual("*****@*****.**", result.ElementAt(0).Email);
            Assert.AreEqual("*****@*****.**", result.ElementAt(1).Email);
        }
        public void UpdateUser()
        {
            var mockedUserRepo = new UserRepositoryMock();
            var userRepository = mockedUserRepo.GetUserRepoMockedInstance();

            var user = new User {
                UserId = 1, Email = "*****@*****.**", Password = "******", ActivationStatus = false, ActivationCode = "user2123"
            };

            userRepository.SaveUser(user);

            mockedUserRepo.dbContext.Verify(m => m.SaveChanges(), Times.Once());
        }