public void StreamDeleteEvent(UserEvent @event)
        {
            var user = _repository.GetById(@event.Id);

            _repository.Delete(user);
        }
        public void StreamCreateEvent(UserEvent @event)
        {
            var user = new User(@event.Name, @event.Password, @event.Email, @event.Login);

            _repository.Add(user);
        }