-
Notifications
You must be signed in to change notification settings - Fork 3
/
EmployeesHiredBefore.cpp
34 lines (27 loc) · 1.32 KB
/
EmployeesHiredBefore.cpp
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
//
// Copyright (C) 2013 by Konstantin (Kosta) Baumann. All Rights Reserved.
//
#include "fitnesse/cppslim/Fixture.h"
#include "fitnesse/cppslim/Registry.h"
SLIM_DEFINE_FIXTURE(EmployeesHiredBefore) {
static void RegisterMethods() {
RegisterCtor1<std::string>();
RegisterMethod("query", &EmployeesHiredBefore::query);
}
EmployeesHiredBefore(const std::string& date) { }
std::vector<std::vector<std::vector<std::string> > > query() const {
std::vector<std::vector<std::vector<std::string> > > result;
result.resize(2);
result[0].resize(4);
result[0][0].push_back("employee number"); result[0][0].push_back("1429");
result[0][1].push_back("first name"); result[0][1].push_back("Bob");
result[0][2].push_back("last name"); result[0][2].push_back("Martin");
result[0][3].push_back("hire date"); result[0][3].push_back("10-Oct-1974");
result[1].resize(4);
result[1][0].push_back("employee number"); result[1][0].push_back("8832");
result[1][1].push_back("first name"); result[1][1].push_back("James");
result[1][2].push_back("last name"); result[1][2].push_back("Grenning");
result[1][3].push_back("hire date"); result[1][3].push_back("15-Dec-1979");
return result;
}
};