use
strict;
use
warnings;
{
__PACKAGE__->service(
'Accounts'
);
__PACKAGE__->add_method(
'createAccount'
);
sub
createAccount {
}
__PACKAGE__->add_method(
'getAccount'
);
sub
getAccount {
}
}
is(MyAPI::Handler->service,
'Accounts'
,
"service()"
);
is_deeply(
MyAPI::Handler->methods,
{
createAccount
=>
'normal'
,
getAccount
=>
'normal'
,
},
"methods()"
);