public void When(AddSecurityKey c) { var key = _generator.CreatePassword(32); var user = new UserId(_identityGenerator.GetId()); var token = _generator.CreateToken(); Apply(new SecurityKeyAdded(c.Id, user, c.DisplayName, key, token)); }
static string When(AddSecurityKey e) { return string.Format("Add security key '{0}'",e.DisplayName); }
static string When(AddSecurityKey e) { return(string.Format("Add security key '{0}'", e.DisplayName)); }