refactoring. put methods to individual structures
This commit is contained in:
		@@ -88,7 +88,7 @@ func TestReportOnSoldProducts(t *testing.T) {
 | 
			
		||||
	for _, test := range tests {
 | 
			
		||||
		c := NewMockClient(core.NewMockHttpHandler(test.statusCode, test.response, test.headers))
 | 
			
		||||
 | 
			
		||||
		resp, err := c.ReportOnSoldProducts(test.params)
 | 
			
		||||
		resp, err := c.Finance().ReportOnSoldProducts(test.params)
 | 
			
		||||
		if err != nil {
 | 
			
		||||
			t.Error(err)
 | 
			
		||||
		}
 | 
			
		||||
@@ -154,7 +154,7 @@ func TestGetTotalTransactionsSum(t *testing.T) {
 | 
			
		||||
	for _, test := range tests {
 | 
			
		||||
		c := NewMockClient(core.NewMockHttpHandler(test.statusCode, test.response, test.headers))
 | 
			
		||||
 | 
			
		||||
		resp, err := c.GetTotalTransactionsSum(test.params)
 | 
			
		||||
		resp, err := c.Finance().GetTotalTransactionsSum(test.params)
 | 
			
		||||
		if err != nil {
 | 
			
		||||
			t.Error(err)
 | 
			
		||||
		}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user