@@ -68,7 +68,7 @@ public class BunqSdkTestBase
6868 private const string SpendingMoneyAmount = "50.00" ;
6969 private const string SpendingMoneyRequestDescription = "sdk c# test, thanks daddy." ;
7070
71- protected static MonetaryAccountBank SecondMonetaryAccountBank ;
71+ protected static MonetaryAccountBankApiObject SecondMonetaryAccountBank ;
7272
7373 /// <summary>
7474 /// Gets an Api Context, re-creates if needed and returns it.
@@ -78,7 +78,7 @@ protected static void SetUpTestCase()
7878 SetUpApiContext ( ) ;
7979 SecondMonetaryAccountBank = SetUpSecondMonetaryAccount ( ) ;
8080 RequestSpendingMoney ( ) ;
81- Thread . Sleep ( 500 ) ; // ensure requests are auto accepted.
81+ Thread . Sleep ( 1000 ) ; // Ensure requests are auto accepted.
8282 BunqContext . UserContext . RefreshUserContext ( ) ;
8383 }
8484
@@ -102,7 +102,7 @@ protected static ApiContext SetUpApiContext()
102102 return apiContext ;
103103 }
104104
105- private static SandboxUserPerson GenerateNewSandboxUserPerson ( )
105+ private static SandboxUserPersonApiObject GenerateNewSandboxUserPerson ( )
106106 {
107107 var httpClient = new HttpClient ( ) ;
108108 httpClient . DefaultRequestHeaders . Add ( "X-Bunq-Client-Request-Id" , "unique" ) ;
@@ -118,42 +118,42 @@ private static SandboxUserPerson GenerateNewSandboxUserPerson()
118118 var responseString = requestTask . Result . Content . ReadAsStringAsync ( ) . Result ;
119119 var responseJson = BunqJsonConvert . DeserializeObject < JObject > ( responseString ) ;
120120
121- return BunqJsonConvert . DeserializeObject < SandboxUserPerson > (
121+ return BunqJsonConvert . DeserializeObject < SandboxUserPersonApiObject > (
122122 responseJson . First . First . First . First . First . ToString ( )
123123 ) ;
124124 }
125125
126- private static MonetaryAccountBank SetUpSecondMonetaryAccount ( )
126+ private static MonetaryAccountBankApiObject SetUpSecondMonetaryAccount ( )
127127 {
128- var createdMonetaryAccountId = MonetaryAccountBank . Create ( PaymentCurrency , MonetaryAccountDescription ) ;
128+ var createdMonetaryAccountId = MonetaryAccountBankApiObject . Create ( PaymentCurrency , MonetaryAccountDescription ) ;
129129
130- return MonetaryAccountBank . Get ( createdMonetaryAccountId . Value ) . Value ;
130+ return MonetaryAccountBankApiObject . Get ( createdMonetaryAccountId . Value ) . Value ;
131131 }
132132
133133 private static void RequestSpendingMoney ( )
134134 {
135- RequestInquiry . Create (
136- new Amount ( SpendingMoneyAmount , PaymentCurrency ) ,
137- new Pointer ( PointerTypeEmail , EmailSuggarDaddy ) ,
135+ RequestInquiryApiObject . Create (
136+ new AmountObject ( SpendingMoneyAmount , PaymentCurrency ) ,
137+ new PointerObject ( PointerTypeEmail , EmailSuggarDaddy ) ,
138138 SpendingMoneyRequestDescription ,
139139 false
140140 ) ;
141141
142- RequestInquiry . Create (
143- new Amount ( SpendingMoneyAmount , PaymentCurrency ) ,
144- new Pointer ( PointerTypeEmail , EmailSuggarDaddy ) ,
142+ RequestInquiryApiObject . Create (
143+ new AmountObject ( SpendingMoneyAmount , PaymentCurrency ) ,
144+ new PointerObject ( PointerTypeEmail , EmailSuggarDaddy ) ,
145145 SpendingMoneyRequestDescription ,
146146 false ,
147147 SecondMonetaryAccountBank . Id
148148 ) ;
149149 }
150150
151- protected static Pointer GetPointerBravo ( )
151+ protected static PointerObject GetPointerBravo ( )
152152 {
153- return new Pointer ( PointerTypeEmail , EmailBravo ) ;
153+ return new PointerObject ( PointerTypeEmail , EmailBravo ) ;
154154 }
155155
156- protected static Pointer GetAlias ( )
156+ protected static PointerObject GetAlias ( )
157157 {
158158 var userContext = BunqContext . UserContext ;
159159
0 commit comments