OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
FixtureBusinessLogicHandler.h
Go to the documentation of this file.
1#pragma once
2#include <gtest/gtest.h>
4
5class FixtureBusinessLogicHandler : public testing::Test
6{
7public:
8 std::vector<std::string> SetAnother5Names(std::list<std::string>& alreadySetNames)
9 {
10 return _handler.CreateNewUniqueTopologyNames(alreadySetNames, _folderName, _fileName, 5);
11 }
12
13 std::vector<std::string> SetAnother5NamesStartWith7(std::list<std::string>& alreadySetNames)
14 {
15 return _handler.CreateNewUniqueTopologyNames(alreadySetNames, _folderName, _fileName, 5,7);
16 }
17
18 std::vector<std::string> SetAnother5NamesAlwaysNumbered(std::list<std::string>& alreadySetNames)
19 {
20 return _handler.CreateNewUniqueTopologyNames(alreadySetNames, _folderName, _fileName, 5, 1,true);
21 }
22
23
24 std::string getFileName()
25 {
26 return "File";
27 }
28 std::string getFolderName()
29 {
30 return "Folder";
31 }
32private:
33 BusinessLogicHandler _handler;
34 const std::string _folderName = "Folder";
35 const std::string _fileName = "File";
36
37};
Common methods for all central service handler classes.
Definition BusinessLogicHandler.h:16
Definition FixtureBusinessLogicHandler.h:6
std::string getFileName()
Definition FixtureBusinessLogicHandler.h:24
std::string getFolderName()
Definition FixtureBusinessLogicHandler.h:28
std::vector< std::string > SetAnother5NamesAlwaysNumbered(std::list< std::string > &alreadySetNames)
Definition FixtureBusinessLogicHandler.h:18
std::vector< std::string > SetAnother5Names(std::list< std::string > &alreadySetNames)
Definition FixtureBusinessLogicHandler.h:8
std::vector< std::string > SetAnother5NamesStartWith7(std::list< std::string > &alreadySetNames)
Definition FixtureBusinessLogicHandler.h:13