package Ġcom . an amarin . bitcoin prices app . core . utils Ċ Ċ import Ġcom . an amarin . bitcoin prices app . data . api . Bitcoin Chart DTO Ċ import Ġcom . an amarin . bitcoin prices app . data . models . Bitcoin Chart Ċ import Ġcom . an amarin . bitcoin prices app . data . models . Bitcoin Coordinates Model Ċ import Ġcom . an amarin . bitcoin prices app . data . models . Bitcoin Info Model Ċ import Ġcom . an amarin . bitcoin prices app . domain . entities . Bitcoin Info Entity Ċ Ċ fun Ġget Bitcoin Info Model Test (): ĠBitcoin Info Model Ġ{ ĊĠĠĠ Ġreturn ĠBitcoin Info Model ( ĊĠĠĠĠĠĠĠ Ġname Ġ= Ġ" market - prices ", ĊĠĠĠĠĠĠĠ Ġunit Ġ= Ġ" USD " ĊĠĠĠ Ġ) Ċ } Ċ Ċ fun ĠgetList Bitcoin Coordinates Model Test ( size : ĠInt Ġ= Ġ 5 , Ġbitcoin Info Id : ĠString Ġ= Ġ"") : ĠList < Bitcoin Coordinates Model > Ġ{ ĊĠĠĠ Ġreturn Ġ( 0 .. size ). map Ġ{ ĠBitcoin Coordinates Model ( 0 , Ġbitcoin Info Id , Ġit . toDouble (), Ġit . toDouble ()) Ġ} Ċ } Ċ Ċ fun Ġget Bitcoin Info DTO Test (): ĠBitcoin Chart DTO Ġ{ ĊĠĠĠ Ġreturn ĠBitcoin Chart DTO ( ĊĠĠĠĠĠĠĠ Ġname Ġ= Ġ" market - prices ", ĊĠĠĠĠĠĠĠ Ġunit Ġ= Ġ" USD ", ĊĠĠĠĠĠĠĠ Ġvalues Ġ= ĠgetList Bitcoin Coordinates Model Test () ĊĠĠĠ Ġ) Ċ } Ċ Ċ fun Ġget Bitcoin Entity Test (): ĠBitcoin Info Entity Ġ{ ĊĠĠĠ Ġreturn ĠBitcoin Info Entity ( Bitcoin Chart ( get Bitcoin Info Model Test (), ĠgetList Bitcoin Coordinates Model Test ())) Ċ }