-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAcceptanceTesting.hpp
More file actions
65 lines (50 loc) · 1.88 KB
/
AcceptanceTesting.hpp
File metadata and controls
65 lines (50 loc) · 1.88 KB
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
65
#ifndef CONTACTS_EXPLORER_ACCEPTANCETESTING_HPP
#define CONTACTS_EXPLORER_ACCEPTANCETESTING_HPP
#include "Website.hpp"
class AcceptanceTesting {
public:
explicit AcceptanceTesting(const WebsiteSettings& settings);
/** **Use case 1:** Read a text file from the local file system. */
void readTextFile();
/** **Use case 2:**
* Display all contacts (contact details) in a console window, in raw format ie
* without HTML tagging.
*/
void displayAllContacts();
/** **Use case 3:**
* Retrieve and display a single contact record (ie all contact details) in a
* console window.
*/
void displaySingleRecord();
/** **Use case 4:**
* Generate and display the HTML source code of the index page in a console
* window. The HTML must be well-formed; only the doc type HTML 5 is acceptable.
* The index page must contain hyperlinks for EACH of the contact records.
*/
void displayIndexSource();
/** **Use case 5:**
* Add HTML elements to the index page (in particular: paragraphs and
* hyperlinks).
*/
void addElementsToIndex();
/** **Use case 6:**
* Generate and display the HTML source code of a details page in a console
* window. The HTML must be well-formed; only the doc type HTML 5 is acceptable.
* Each details page must contain a hyperlink to the index page.
*/
void displayDetailsSource();
/** **Use case 7:**
* Add HTML elements to any of the linked pages (in particular: paragraphs).
* Optional: add CSS code.
*/
void addElementsToDetails();
/** **Use case 8:**
* Generate HTML source code for an index page and all details pages. Write a
* file for EACH of the generated pages to disk.
*/
void generateAndSaveWebsite();
private:
Website website_;
std::string csvPath_;
};
#endif //CONTACTS_EXPLORER_ACCEPTANCETESTING_HPP