public Guid Handle(GetAvailableAccountIdQuery query) { Guid returnValue; do { returnValue = Guid.NewGuid(); }while (_archive.HasAccount(returnValue)); return(returnValue); }
public bool Handle(HasAccountQuery query) { return(_archive.HasAccount(query.AccountId)); }