public void ConfirmUserUsingRightKey_GetConfirmedUser()
        {
            //Arrange
            var accountFacade = new AccountFacade(_keysRepository, _userRepository, _emailSender.Object, userSettings);
            var userFacade    = new UserFacade(_userRepository, _groupRepository, _eventRepository, _publisher.Object);
            var key           = new Key("email", KeyAppointment.ConfirmEmail);

            _keysRepository.AddKey(key);
            var userId = accountFacade.RegUser("Alena", Credentials.FromRawData("email", "password"), true);

            //Act
            accountFacade.ConfirmUser(key.Value);
            var currentUser = userFacade.GetUser(userId);

            //Assert
            Assert.AreEqual(UserType.User, currentUser.Type);
            Assert.AreEqual(true, key.Used);
        }