Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API Test senario #3

Open
GabrielVilen opened this issue Jan 15, 2018 · 3 comments
Open

API Test senario #3

GabrielVilen opened this issue Jan 15, 2018 · 3 comments
Assignees

Comments

@GabrielVilen
Copy link
Collaborator

--TESTS--

Trade:

{
"$class": "org.emission.network.Trade",
"emission": 100,
"buyer": "resource:org.emission.network.Company#b",
"seller": "resource:org.emission.network.Company#A"
}

--

Setup:
ISSUE IDENTITY TO COMPANIES SO THEY ARE ADDED TO PARTICIPANT REGISTRY!
Compan#A have 100 emissionLimit
Ett#A have 0 emissionLimit

Sell:

{
"$class": "org.emission.network.Sell",
"emission": 50,
"sellerID": "1"
}

Result:
the Company#A should have 100 -> 50 emissionLimit
and Ett#A should have 50 emission
Market should be updated

--

Buy:

{
"$class": "org.emission.network.Buy",
"emission": 100,
"buyerID": "1"
}

@tamycova
Copy link
Collaborator

Can you make it a bit more complex pls?

@tamycova
Copy link
Collaborator

and unlock your branch!

@stefan-stojkovski
Copy link
Collaborator

+1 on Tamy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants