@@ -11,10 +11,10 @@ use crate::{
11
11
MockBillChainStoreApiMock , MockBillStoreApiMock , MockCompanyChainStoreApiMock ,
12
12
MockCompanyStoreApiMock , MockContactStoreApiMock , MockFileUploadStoreApiMock ,
13
13
MockIdentityChainStoreApiMock , MockIdentityStoreApiMock , MockMintStore ,
14
- VALID_PAYMENT_ADDRESS_TESTNET , bill_id_test , bill_identified_participant_only_node_id ,
15
- bill_participant_only_node_id , empty_address , empty_bill_identified_participant ,
16
- empty_bitcredit_bill, empty_identity, init_test_cfg, node_id_test , node_id_test_other ,
17
- node_id_test_other2, private_key_test,
14
+ MockNostrContactStore , VALID_PAYMENT_ADDRESS_TESTNET , bill_id_test ,
15
+ bill_identified_participant_only_node_id , bill_participant_only_node_id , empty_address ,
16
+ empty_bill_identified_participant , empty_bitcredit_bill, empty_identity, init_test_cfg,
17
+ node_id_test , node_id_test_other , node_id_test_other2, private_key_test,
18
18
} ,
19
19
util,
20
20
} ;
@@ -58,6 +58,7 @@ pub struct MockBillContext {
58
58
pub mint_store : MockMintStore ,
59
59
pub mint_client : MockMintClientApi ,
60
60
pub court_client : MockCourtClientApi ,
61
+ pub nostr_contact_store : MockNostrContactStore ,
61
62
}
62
63
63
64
pub fn get_baseline_identity ( ) -> IdentityWithAll {
@@ -206,6 +207,9 @@ pub fn get_service(mut ctx: MockBillContext) -> BillService {
206
207
)
207
208
} ) ;
208
209
bitcoin_client. expect_generate_link_to_pay ( ) . returning ( |_, _, _| String :: from ( "bitcoin:1Jfn2nZcJ4T7bhE8FdMRz8T3P3YV4LsWn2?amount=0.01&message=Payment in relation to bill some bill" ) ) ;
210
+ ctx. nostr_contact_store
211
+ . expect_by_node_id ( )
212
+ . returning ( |_| Ok ( None ) ) ;
209
213
ctx. contact_store . expect_get ( ) . returning ( |node_id| {
210
214
let mut contact = get_baseline_contact ( ) ;
211
215
contact. node_id = node_id. to_owned ( ) ;
@@ -300,6 +304,7 @@ pub fn get_service(mut ctx: MockBillContext) -> BillService {
300
304
Arc :: new ( ctx. mint_store ) ,
301
305
Arc :: new ( ctx. mint_client ) ,
302
306
Arc :: new ( ctx. court_client ) ,
307
+ Arc :: new ( ctx. nostr_contact_store ) ,
303
308
)
304
309
}
305
310
@@ -318,6 +323,7 @@ pub fn get_ctx() -> MockBillContext {
318
323
mint_store : MockMintStore :: new ( ) ,
319
324
mint_client : MockMintClientApi :: new ( ) ,
320
325
court_client : MockCourtClientApi :: new ( ) ,
326
+ nostr_contact_store : MockNostrContactStore :: new ( ) ,
321
327
}
322
328
}
323
329
0 commit comments