package Ġfake Ċ Ċ import Ġapp . d apk . st . matrix . common . Room Id Ċ import Ġapp . d apk . st . matrix . common . Room Member Ċ import Ġapp . d apk . st . matrix . common . UserId Ċ import Ġapp . d apk . st . matrix . sync . Room Members Service Ċ import Ġio . mock k . co Every Ċ import Ġio . mock k . mock k Ċ Ċ class ĠFake Room Members Service Ġ: ĠRoom Members Service Ġby Ġmock k () Ġ{ ĊĊĠĠĠ Ġfun Ġgiven Member ( roomId : ĠRoom Id , ĠuserId : ĠUserId , Ġroom Member : ĠRoom Member ?) Ġ{ ĊĠĠĠĠĠĠĠ Ġco Every Ġ{ Ġfind ( roomId , ĠlistOf ( userId )) Ġ} Ġreturns Ġ( room Member ?. let Ġ{ ĠlistOf ( it ) Ġ} Ġ?: Ġempty List ()) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġgiven No Members ( roomId : ĠRoom Id ) Ġ{ ĊĠĠĠĠĠĠĠ Ġco Every Ġ{ Ġfind ( roomId , Ġempty List ()) Ġ} Ġreturns Ġempty List () ĊĠĠĠ Ġ} Ċ }