Esempio n. 1
0
 public void ChangeName(string login, string password, string newName)
 {
     if (CanLogin(login, password))
     {
         var e = new ChangeUserNameEvent(login, newName);
         _blackBox.Record(new Event("ChangeName", login, e.ToJson()));
     }
 }
Esempio n. 2
0
        public void CreateBook(string title)
        {
            var e = new BookCreated(title);

            _blackBox.Record("BookCreated", title, e.ToJson());
        }