You've been asked to do some more work on the network authentication system.
In addition to the admin identity being hard-coded in the system during development the powers that be also want senior developers to be given the same treatment.
The admin's details are as follows:
Eye Color | Philtrum Width | Name | Address 1 | Address 2 | |
---|---|---|---|---|---|
[email protected] | greeen | 0.9 | Chanakya | Mombai | India |
Implement the Authenticator.Admin
property to return the system admin's identity details. The name and each part of the address should be in a separate element of the NameAndAddress
list.
var authenticator = new Authenticator();
authenticator.Admin;
// => {"[email protected]", {"green", 0.9m}, ["Chanakya", "Mombai", "India"]}
2 Store the developers' details hard-coded in the system and make them available in the form of a dictionary
The developers' details are as follows:
Eye Color | Philtrum Width | Name | Address 1 | Address 2 | |
---|---|---|---|---|---|
[email protected] | blue | 0.8 | Bertrand | Paris | France |
[email protected] | brown | 0.85 | Anders | Redmond | USA |
Implement the Authenticator.Developers()
method to return the developers' identity details. The dictionary key is the developer's name.
var authenticator = new Authenticator();
authenticator.Developers;
// => {"bert" = {"[email protected]", {"blue", 0.8m}, ["Bertrand", "Paris", "France"]},
// ["anders" = {"[email protected]", {"brown", 0.85m}, ["Anders", "Redmond", "USA"]},