public Guid Handle(GetAvailableAccountIdQuery query)
        {
            Guid returnValue;

            do
            {
                returnValue = Guid.NewGuid();
            }while (_archive.HasAccount(returnValue));

            return(returnValue);
        }
Exemplo n.º 2
0
 public bool Handle(HasAccountQuery query)
 {
     return(_archive.HasAccount(query.AccountId));
 }