First of all, C# solutions are needed.
So in my team I am responsible for creating a program that will receive a "task" in json format from an API, from this json it needs to figure out what website to create an account for, for example:
- wordpress.com
- weebly.com
- whatever.com
Now, each of these sites will have separate logic for using a browser to navigate, click and type text, to finally create an account and report back to the API.
My problem is: Which option is gonna be easier to mantain in the future since we are gonna be automating probably 25+ websites with account creation.
- One DLL for each website logic
- One separate program (.exe) for each website logic
- I am also open to any options you have to offer.
What needs to be kept in mind is that when a logic breaks, we need to update that logic, and everything needs to be updated automatically, so im not sure if DLLs can be replaced while an APP is running.
Thoughts?
EDIT:
Thanks, by the way, what do you think about code repetition? For example:
Wordpress bot needs to
- Parse JSON data from command line
- Launch Browser
- Create account on wordpress(lots of different instructions)
- Report task status to server.
Weebly bot needs to
- Parse JSON data from command line
- Launch Browser
- Create account on weebly(lots of different instructions)
- Report task status to server
See the repetition?
Now I guess it could be simplified to: - JsonParser.dll - Browser.dll - TaskReporting.dll
Or is there a better way to make stuff less repeated?
Beacause if lets say i need to add another BOT to the arsenal for any other website it would still have to:
- Parse JSON
- Work with the browser
- Report to server about task status