refactoring. put methods to individual structures

This commit is contained in:
diPhantxm
2023-03-15 21:38:17 +03:00
parent 2e60a17c56
commit 2566f85da3
17 changed files with 148 additions and 55 deletions

View File

@@ -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)
}