-
Notifications
You must be signed in to change notification settings - Fork 1
/
test
64 lines (48 loc) · 1.62 KB
/
test
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
// Driver function
// Added static entities
AddStaticEntity(1046,"Maharastra",4);
AddStaticEntity(1001,"Mumbai",5);
AddStaticEntity(1010,"NaviMumbai",6);
// Added Normal entities
AddEntity(1,"Swapnil",1);
AddEntity(2,"Pradnya",2);
AddEntity(3,"Shweta",3);
// New Scheme Created by goverment
AddScheme("PMJDY","Pradhan Mantri Jan Dhan Yogana","Pradhan Mantri Jan-Dhan Yojana (PMJDY) is National Mission for Financial Inclusion to ensure access to financial services, namely, Banking/ Savings & Deposit Accounts, Remittance, Credit, Insurance, Pension in an affordable manner.",1000,222222,0x14723a09acff6d2a60dcdf7aa4aff308fddc160c);
// Authorized persons added for perticular scheme
AddAuthorizedPerson("PMJDY",1,10);
AddAuthorizedPerson("PMJDY",2,20);
AddAuthorizedPerson("PMJDY",3,30);
// Money add for test perposes
AddMoney("PMJDY",1046,1000);
AddMoney("PMJDY",1001,500);
AddMoney("PMJDY",1010,100);
// Toney transfer simulated
TransferMoney("PMJDY",1046,2,25);
// Demonstration
// Get info about a scheme
"PMJDY"
// Get static entities
1046 // Maharastra
1001 // Mumbai
// Check how much money a person is getting
"PMJDY",1
"PMJDY",2
// Add new entity
4,"Rahul",4
// Lock the scheme
"PMJDY"
// Make rahul authorized
"PMJDY",4,40
// Check entites added after lock
"PMJDY"
// Try to mak money transfer to these
"PMJDY",1046,1,10
// This will fail as assigned money is less than the given
"PMJDY",1046,3,10
// Tihs will be succedfull as 30 is money assisgned for that entity
"PMJDY",1046,3,30
// Check money received in a perticular scheme
"PMJDY",1
// Benifits Reached
"PMJDY"