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())); } }
public void CreateBook(string title) { var e = new BookCreated(title); _blackBox.Record("BookCreated", title, e.ToJson()); }