@@ -41,15 +41,15 @@ describe('ManagedTransaction', () => {
4141 } ) ) ;
4242
4343 afterEach ( async ( ) => {
44- const database : Database = TestBed . get ( Database ) ;
44+ const database : Database = TestBed . inject ( Database ) ;
4545 expect ( database ) . toBeTruthy ( ) ;
4646
4747 const crud = await database . crud ( ) . toPromise ( ) ;
4848 await crud . delete ( GuidClazz ) . execute ( ) . toPromise ( ) ;
4949 } ) ;
5050
5151 it ( 'Transaction Test' , async ( ) => {
52- const database : Database = TestBed . get ( Database ) ;
52+ const database : Database = TestBed . inject ( Database ) ;
5353 expect ( database ) . toBeTruthy ( ) ;
5454
5555 const crud = await database . crud ( ) . toPromise ( ) ;
@@ -64,7 +64,7 @@ describe('ManagedTransaction', () => {
6464 } ) ;
6565
6666 it ( 'Transaction Simple' , async ( ) => {
67- const database : Database = TestBed . get ( Database ) ;
67+ const database : Database = TestBed . inject ( Database ) ;
6868 expect ( database ) . toBeTruthy ( ) ;
6969
7070 const transaction = await database . managedTransaction ( ) . toPromise ( ) ;
@@ -106,7 +106,7 @@ describe('ManagedTransaction', () => {
106106 } ) ;
107107
108108 it ( 'Transaction inactive' , async ( ) => {
109- const database : Database = TestBed . get ( Database ) ;
109+ const database : Database = TestBed . inject ( Database ) ;
110110 expect ( database ) . toBeTruthy ( ) ;
111111
112112 const transaction = await database . managedTransaction ( ) . toPromise ( ) ;
@@ -130,7 +130,7 @@ describe('ManagedTransaction', () => {
130130 } ) ;
131131
132132 it ( 'Transaction get guid id' , async ( ) => {
133- const database : Database = TestBed . get ( Database ) ;
133+ const database : Database = TestBed . inject ( Database ) ;
134134 expect ( database ) . toBeTruthy ( ) ;
135135
136136 const transaction = await database . managedTransaction ( ) . toPromise ( ) ;
@@ -155,7 +155,7 @@ describe('ManagedTransaction', () => {
155155 } ) ;
156156
157157 it ( 'Transaction_error' , async ( ) => {
158- const database : Database = TestBed . get ( Database ) ;
158+ const database : Database = TestBed . inject ( Database ) ;
159159 expect ( database ) . toBeTruthy ( ) ;
160160
161161 const transaction = await database . managedTransaction ( ) . toPromise ( ) ;
@@ -197,7 +197,7 @@ describe('ManagedTransaction', () => {
197197 } ) ;
198198
199199 it ( 'Transaction rollback' , async ( ) => {
200- const database : Database = TestBed . get ( Database ) ;
200+ const database : Database = TestBed . inject ( Database ) ;
201201 expect ( database ) . toBeTruthy ( ) ;
202202
203203 const transaction = await database . managedTransaction ( ) . toPromise ( ) ;
@@ -231,7 +231,7 @@ describe('ManagedTransaction', () => {
231231 * OK
232232 */
233233 it ( 'Transaction deny query' , async ( ) => {
234- const database : Database = TestBed . get ( Database ) ;
234+ const database : Database = TestBed . inject ( Database ) ;
235235 expect ( database ) . toBeTruthy ( ) ;
236236
237237 const transaction = await database . managedTransaction ( ) . toPromise ( ) ;
0 commit comments