|
|
@ -211,7 +211,7 @@ mod test { |
|
|
|
|
|
|
|
#[async_trait::async_trait]
|
|
|
|
impl EntityGateway for TestData {
|
|
|
|
async fn get_user_by_name(&self, name: String) -> Result<UserAccountEntity, GatewayError> {
|
|
|
|
async fn get_user_by_name(&mut self, name: String) -> Result<UserAccountEntity, GatewayError> {
|
|
|
|
assert!(name == "testuser");
|
|
|
|
Ok(UserAccountEntity {
|
|
|
|
id: UserAccountId(1),
|
|
|
@ -269,7 +269,7 @@ mod test { |
|
|
|
|
|
|
|
#[async_trait::async_trait]
|
|
|
|
impl EntityGateway for TestData {
|
|
|
|
async fn get_user_by_name(&self, _name: String) -> Result<UserAccountEntity, GatewayError> {
|
|
|
|
async fn get_user_by_name(&mut self, _name: String) -> Result<UserAccountEntity, GatewayError> {
|
|
|
|
Err(GatewayError::Error)
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -303,7 +303,7 @@ mod test { |
|
|
|
|
|
|
|
#[async_trait::async_trait]
|
|
|
|
impl EntityGateway for TestData {
|
|
|
|
async fn get_user_by_name(&self, name: String) -> Result<UserAccountEntity, GatewayError> {
|
|
|
|
async fn get_user_by_name(&mut self, name: String) -> Result<UserAccountEntity, GatewayError> {
|
|
|
|
assert!(name == "testuser");
|
|
|
|
Ok(UserAccountEntity {
|
|
|
|
id: UserAccountId(1),
|
|
|
|