CalendarDataStorage AddOneEntryTest;
- ASSERT_EQ(CDSACCOUNT_OK, AddOneEntryTest.AddAccount("Test Account 1"));
+ ASSERT_EQ(CDSACCOUNT_OK, AddOneEntryTest.AddAccount("Test Account 1", 1));
}
CalendarDataStorage AddTwoEntryTest;
- ASSERT_EQ(CDSACCOUNT_OK, AddTwoEntryTest.AddAccount("Test Account 1"));
- ASSERT_EQ(CDSACCOUNT_OK, AddTwoEntryTest.AddAccount("Test Account 2"));
+ ASSERT_EQ(CDSACCOUNT_OK, AddTwoEntryTest.AddAccount("Test Account 1", 1));
+ ASSERT_EQ(CDSACCOUNT_OK, AddTwoEntryTest.AddAccount("Test Account 2", 2));
}
CalendarDataStorage AddThreeEntryTest;
- ASSERT_EQ(CDSACCOUNT_OK, AddThreeEntryTest.AddAccount("Test Account 1"));
- ASSERT_EQ(CDSACCOUNT_OK, AddThreeEntryTest.AddAccount("Test Account 2"));
- ASSERT_EQ(CDSACCOUNT_OK, AddThreeEntryTest.AddAccount("Test Account 3"));
+ ASSERT_EQ(CDSACCOUNT_OK, AddThreeEntryTest.AddAccount("Test Account 1", 1));
+ ASSERT_EQ(CDSACCOUNT_OK, AddThreeEntryTest.AddAccount("Test Account 2", 2));
+ ASSERT_EQ(CDSACCOUNT_OK, AddThreeEntryTest.AddAccount("Test Account 3", 3));
}
CalendarDataStorage AccountInformationTest;
- AccountInformationTest.AddAccount("Test Account 1");
+ AccountInformationTest.AddAccount("Test Account 1", 1);
ASSERT_EQ(CDSACCOUNT_OK, AccountInformationTest.GetAccount("Test Account 1").accountInfoResult);
ASSERT_EQ("Test Account 1", AccountInformationTest.GetAccount("Test Account 1").accountName);
ASSERT_EQ(1, AccountInformationTest.GetAccount("Test Account 1").accountID);
CalendarDataStorage AccountInformationTest;
- AccountInformationTest.AddAccount("Test Account 1");
- AccountInformationTest.AddAccount("Test Account 2");
+ AccountInformationTest.AddAccount("Test Account 1", 1);
+ AccountInformationTest.AddAccount("Test Account 2", 2);
ASSERT_EQ(CDSACCOUNT_OK, AccountInformationTest.GetAccount("Test Account 1").accountInfoResult);
ASSERT_EQ("Test Account 1", AccountInformationTest.GetAccount("Test Account 1").accountName);
ASSERT_EQ(1, AccountInformationTest.GetAccount("Test Account 1").accountID);
+ ASSERT_EQ(1, AccountInformationTest.GetAccount("Test Account 1").accountPreferencesID);
ASSERT_EQ(CDSACCOUNT_OK, AccountInformationTest.GetAccount("Test Account 2").accountInfoResult);
ASSERT_EQ("Test Account 2", AccountInformationTest.GetAccount("Test Account 2").accountName);
ASSERT_EQ(2, AccountInformationTest.GetAccount("Test Account 2").accountID);
+ ASSERT_EQ(2, AccountInformationTest.GetAccount("Test Account 2").accountPreferencesID);
}
CalendarDataStorage AccountInformationTest;
- AccountInformationTest.AddAccount("Test Account 1");
- AccountInformationTest.AddAccount("Test Account 2");
- AccountInformationTest.AddAccount("Test Account 3");
+ AccountInformationTest.AddAccount("Test Account 1", 1);
+ AccountInformationTest.AddAccount("Test Account 2", 2);
+ AccountInformationTest.AddAccount("Test Account 3", 3);
ASSERT_EQ(CDSACCOUNT_OK, AccountInformationTest.GetAccount("Test Account 1").accountInfoResult);
ASSERT_EQ("Test Account 1", AccountInformationTest.GetAccount("Test Account 1").accountName);
ASSERT_EQ(1, AccountInformationTest.GetAccount("Test Account 1").accountID);
+ ASSERT_EQ(1, AccountInformationTest.GetAccount("Test Account 1").accountPreferencesID);
ASSERT_EQ(CDSACCOUNT_OK, AccountInformationTest.GetAccount("Test Account 2").accountInfoResult);
ASSERT_EQ("Test Account 2", AccountInformationTest.GetAccount("Test Account 2").accountName);
ASSERT_EQ(2, AccountInformationTest.GetAccount("Test Account 2").accountID);
+ ASSERT_EQ(2, AccountInformationTest.GetAccount("Test Account 2").accountPreferencesID);
ASSERT_EQ(CDSACCOUNT_OK, AccountInformationTest.GetAccount("Test Account 3").accountInfoResult);
ASSERT_EQ("Test Account 3", AccountInformationTest.GetAccount("Test Account 3").accountName);
ASSERT_EQ(3, AccountInformationTest.GetAccount("Test Account 3").accountID);
+ ASSERT_EQ(3, AccountInformationTest.GetAccount("Test Account 3").accountPreferencesID);
}
CalendarDataStorage AccountInformationTest;
- AccountInformationTest.AddAccount("Test Account 1");
+ AccountInformationTest.AddAccount("Test Account 1", 1);
CDSAccountList accountListData = AccountInformationTest.GetAccountList();
ASSERT_EQ(1, accountListData.accountList[0].accountID);
ASSERT_EQ(CDSACCOUNT_OK, accountListData.accountList[0].accountInfoResult);
ASSERT_EQ("Test Account 1", accountListData.accountList[0].accountName);
+ ASSERT_EQ(1, accountListData.accountList[0].accountPreferencesID);
}
CalendarDataStorage AccountInformationTest;
- AccountInformationTest.AddAccount("Test Account 1");
- AccountInformationTest.AddAccount("Test Account 2");
+ AccountInformationTest.AddAccount("Test Account 1", 1);
+ AccountInformationTest.AddAccount("Test Account 2", 2);
CDSAccountList accountListData = AccountInformationTest.GetAccountList();
ASSERT_EQ(1, accountListData.accountList[0].accountID);
ASSERT_EQ(CDSACCOUNT_OK, accountListData.accountList[0].accountInfoResult);
ASSERT_EQ("Test Account 1", accountListData.accountList[0].accountName);
+ ASSERT_EQ(1, accountListData.accountList[0].accountPreferencesID);
ASSERT_EQ(2, accountListData.accountList[1].accountID);
ASSERT_EQ(CDSACCOUNT_OK, accountListData.accountList[1].accountInfoResult);
ASSERT_EQ("Test Account 2", accountListData.accountList[1].accountName);
+ ASSERT_EQ(2, accountListData.accountList[1].accountPreferencesID);
}
CalendarDataStorage AccountInformationTest;
- AccountInformationTest.AddAccount("Test Account 1");
- AccountInformationTest.AddAccount("Test Account 2");
- AccountInformationTest.AddAccount("Test Account 3");
+ AccountInformationTest.AddAccount("Test Account 1", 1);
+ AccountInformationTest.AddAccount("Test Account 2", 2);
+ AccountInformationTest.AddAccount("Test Account 3", 3);
CDSAccountList accountListData = AccountInformationTest.GetAccountList();
ASSERT_EQ(1, accountListData.accountList[0].accountID);
ASSERT_EQ(CDSACCOUNT_OK, accountListData.accountList[0].accountInfoResult);
ASSERT_EQ("Test Account 1", accountListData.accountList[0].accountName);
+ ASSERT_EQ(1, accountListData.accountList[0].accountPreferencesID);
ASSERT_EQ(2, accountListData.accountList[1].accountID);
ASSERT_EQ(CDSACCOUNT_OK, accountListData.accountList[1].accountInfoResult);
ASSERT_EQ("Test Account 2", accountListData.accountList[1].accountName);
+ ASSERT_EQ(2, accountListData.accountList[1].accountPreferencesID);
ASSERT_EQ(3, accountListData.accountList[2].accountID);
ASSERT_EQ(CDSACCOUNT_OK, accountListData.accountList[2].accountInfoResult);
ASSERT_EQ("Test Account 3", accountListData.accountList[2].accountName);
+ ASSERT_EQ(3, accountListData.accountList[2].accountPreferencesID);
}
CalendarDataStorage UpdateAccountTest;
- UpdateAccountTest.AddAccount("Test Account 1");
+ UpdateAccountTest.AddAccount("Test Account 1", 1);
int testAccount1ID = UpdateAccountTest.GetAccount("Test Account 1").accountID;
CalendarDataStorage UpdateAccountTest;
- UpdateAccountTest.AddAccount("Test Account 1");
- UpdateAccountTest.AddAccount("Test Account 2");
+ UpdateAccountTest.AddAccount("Test Account 1", 1);
+ UpdateAccountTest.AddAccount("Test Account 2", 2);
int testAccount1ID = UpdateAccountTest.GetAccount("Test Account 1").accountID;
int testAccount2ID = UpdateAccountTest.GetAccount("Test Account 2").accountID;
CalendarDataStorage UpdateAccountTest;
- UpdateAccountTest.AddAccount("Test Account 1");
- UpdateAccountTest.AddAccount("Test Account 2");
- UpdateAccountTest.AddAccount("Test Account 3");
+ UpdateAccountTest.AddAccount("Test Account 1", 1);
+ UpdateAccountTest.AddAccount("Test Account 2", 2);
+ UpdateAccountTest.AddAccount("Test Account 3", 3);
int testAccount1ID = UpdateAccountTest.GetAccount("Test Account 1").accountID;
int testAccount2ID = UpdateAccountTest.GetAccount("Test Account 2").accountID;
CalendarDataStorage DeleteAccountTest;
- DeleteAccountTest.AddAccount("Test Account 1");
+ DeleteAccountTest.AddAccount("Test Account 1", 1);
ASSERT_EQ(CDSACCOUNT_OK, DeleteAccountTest.DeleteAccount(DeleteAccountTest.GetAccount("Test Account 1").accountID));
CalendarDataStorage DeleteAccountTest;
- DeleteAccountTest.AddAccount("Test Account 1");
- DeleteAccountTest.AddAccount("Test Account 2");
+ DeleteAccountTest.AddAccount("Test Account 1", 1);
+ DeleteAccountTest.AddAccount("Test Account 2", 2);
ASSERT_EQ(CDSACCOUNT_OK, DeleteAccountTest.DeleteAccount(DeleteAccountTest.GetAccount("Test Account 1").accountID));
ASSERT_EQ(CDSACCOUNT_OK, DeleteAccountTest.DeleteAccount(DeleteAccountTest.GetAccount("Test Account 2").accountID));
CalendarDataStorage DeleteAccountTest;
- DeleteAccountTest.AddAccount("Test Account 1");
- DeleteAccountTest.AddAccount("Test Account 2");
- DeleteAccountTest.AddAccount("Test Account 3");
+ DeleteAccountTest.AddAccount("Test Account 1", 1);
+ DeleteAccountTest.AddAccount("Test Account 2", 2);
+ DeleteAccountTest.AddAccount("Test Account 3", 3);
ASSERT_EQ(CDSACCOUNT_OK, DeleteAccountTest.DeleteAccount(DeleteAccountTest.GetAccount("Test Account 1").accountID));
ASSERT_EQ(CDSACCOUNT_OK, DeleteAccountTest.DeleteAccount(DeleteAccountTest.GetAccount("Test Account 2").accountID));
CalendarDataStorage AddCalendarTest;
- AddCalendarTest.AddAccount("Test Account 1");
+ AddCalendarTest.AddAccount("Test Account 1", 1);
ASSERT_EQ(CDSCALENDAR_OK, AddCalendarTest.AddCalendar(AddCalendarTest.GetAccount("Test Account 1").accountID, "Calendar 1", "calendar1-test", DefaultColour, "Calendar Description"));
CalendarDataStorage AddCalendarTest;
- AddCalendarTest.AddAccount("Test Account 1");
+ AddCalendarTest.AddAccount("Test Account 1", 1);
ASSERT_EQ(CDSCALENDAR_OK, AddCalendarTest.AddCalendar(AddCalendarTest.GetAccount("Test Account 1").accountID, "Calendar 1", "calendar1-test", DefaultColour, "Calendar Description"));
ASSERT_EQ(CDSCALENDAR_OK, AddCalendarTest.AddCalendar(AddCalendarTest.GetAccount("Test Account 1").accountID, "Calendar 2", "calendar2-test", DefaultColour, "Calendar Description"));
CalendarDataStorage AddCalendarTest;
- AddCalendarTest.AddAccount("Test Account 1");
+ AddCalendarTest.AddAccount("Test Account 1", 1);
ASSERT_EQ(CDSCALENDAR_OK, AddCalendarTest.AddCalendar(AddCalendarTest.GetAccount("Test Account 1").accountID, "Calendar 1", "calendar1-test", DefaultColour, "Calendar Description"));
ASSERT_EQ(CDSCALENDAR_OK, AddCalendarTest.AddCalendar(AddCalendarTest.GetAccount("Test Account 1").accountID, "Calendar 2", "calendar2-test", DefaultColour, "Calendar Description"));
CalendarDataStorage AddCalendarTest;
- AddCalendarTest.AddAccount("Test Account 1");
- AddCalendarTest.AddAccount("Test Account 2");
+ AddCalendarTest.AddAccount("Test Account 1", 1);
+ AddCalendarTest.AddAccount("Test Account 2", 2);
ASSERT_EQ(CDSCALENDAR_OK, AddCalendarTest.AddCalendar(AddCalendarTest.GetAccount("Test Account 1").accountID, "Calendar 1", "calendar1-test", DefaultColour, "Calendar Description"));
CalendarDataStorage AddCalendarTest;
- AddCalendarTest.AddAccount("Test Account 1");
- AddCalendarTest.AddAccount("Test Account 2");
+ AddCalendarTest.AddAccount("Test Account 1", 1);
+ AddCalendarTest.AddAccount("Test Account 2", 2);
ASSERT_EQ(CDSCALENDAR_OK, AddCalendarTest.AddCalendar(AddCalendarTest.GetAccount("Test Account 1").accountID, "Calendar 1", "calendar1-test", DefaultColour, "Calendar Description"));
ASSERT_EQ(CDSCALENDAR_OK, AddCalendarTest.AddCalendar(AddCalendarTest.GetAccount("Test Account 1").accountID, "Calendar 2", "calendar2-test", DefaultColour, "Calendar Description"));
CalendarDataStorage AddCalendarTest;
- AddCalendarTest.AddAccount("Test Account 1");
- AddCalendarTest.AddAccount("Test Account 2");
+ AddCalendarTest.AddAccount("Test Account 1", 1);
+ AddCalendarTest.AddAccount("Test Account 2", 2);
ASSERT_EQ(CDSCALENDAR_OK, AddCalendarTest.AddCalendar(AddCalendarTest.GetAccount("Test Account 1").accountID, "Calendar 1", "calendar1-test", DefaultColour, "Calendar Description"));
ASSERT_EQ(CDSCALENDAR_OK, AddCalendarTest.AddCalendar(AddCalendarTest.GetAccount("Test Account 1").accountID, "Calendar 2", "calendar2-test", DefaultColour, "Calendar Description"));
CalendarDataStorage AddCalendarTest;
- AddCalendarTest.AddAccount("Test Account 1");
- AddCalendarTest.AddAccount("Test Account 2");
- AddCalendarTest.AddAccount("Test Account 3");
+ AddCalendarTest.AddAccount("Test Account 1", 1);
+ AddCalendarTest.AddAccount("Test Account 2", 2);
+ AddCalendarTest.AddAccount("Test Account 3", 3);
ASSERT_EQ(CDSCALENDAR_OK, AddCalendarTest.AddCalendar(AddCalendarTest.GetAccount("Test Account 1").accountID, "Calendar 1", "calendar1-test", DefaultColour, "Calendar Description"));
CalendarDataStorage AddCalendarTest;
- AddCalendarTest.AddAccount("Test Account 1");
- AddCalendarTest.AddAccount("Test Account 2");
- AddCalendarTest.AddAccount("Test Account 3");
+ AddCalendarTest.AddAccount("Test Account 1", 1);
+ AddCalendarTest.AddAccount("Test Account 2", 2);
+ AddCalendarTest.AddAccount("Test Account 3", 3);
ASSERT_EQ(CDSCALENDAR_OK, AddCalendarTest.AddCalendar(AddCalendarTest.GetAccount("Test Account 1").accountID, "Calendar 1", "calendar1-test", DefaultColour, "Calendar Description"));
ASSERT_EQ(CDSCALENDAR_OK, AddCalendarTest.AddCalendar(AddCalendarTest.GetAccount("Test Account 1").accountID, "Calendar 2", "calendar2-test", DefaultColour, "Calendar Description"));
CalendarDataStorage AddCalendarTest;
- AddCalendarTest.AddAccount("Test Account 1");
- AddCalendarTest.AddAccount("Test Account 2");
- AddCalendarTest.AddAccount("Test Account 3");
+ AddCalendarTest.AddAccount("Test Account 1", 1);
+ AddCalendarTest.AddAccount("Test Account 2", 2);
+ AddCalendarTest.AddAccount("Test Account 3", 3);
ASSERT_EQ(CDSCALENDAR_OK, AddCalendarTest.AddCalendar(AddCalendarTest.GetAccount("Test Account 1").accountID, "Calendar 1", "calendar1-test", DefaultColour, "Calendar Description"));
ASSERT_EQ(CDSCALENDAR_OK, AddCalendarTest.AddCalendar(AddCalendarTest.GetAccount("Test Account 1").accountID, "Calendar 2", "calendar2-test", DefaultColour, "Calendar Description"));
CalendarDataStorage GetCalendarTest;
- GetCalendarTest.AddAccount("Test Account 1");
+ GetCalendarTest.AddAccount("Test Account 1", 1);
ASSERT_EQ(CDSCALENDAR_OK, GetCalendarTest.AddCalendar(GetCalendarTest.GetAccount("Test Account 1").accountID, "Calendar 1", "calendar1-test", DefaultColour, "Calendar Description 1"));
ASSERT_EQ(CDSCALENDAR_OK, GetCalendarTest.AddCalendar(GetCalendarTest.GetAccount("Test Account 1").accountID, "Calendar 2", "calendar2-test", DefaultColour, "Calendar Description 2"));
CalendarDataStorage GetCalendarTest;
- GetCalendarTest.AddAccount("Test Account 1");
- GetCalendarTest.AddAccount("Test Account 2");
+ GetCalendarTest.AddAccount("Test Account 1", 1);
+ GetCalendarTest.AddAccount("Test Account 2", 2);
ASSERT_EQ(CDSCALENDAR_OK, GetCalendarTest.AddCalendar(GetCalendarTest.GetAccount("Test Account 1").accountID, "Calendar 1", "calendar1-test", DefaultColour, "Calendar Description 1"));
ASSERT_EQ(CDSCALENDAR_OK, GetCalendarTest.AddCalendar(GetCalendarTest.GetAccount("Test Account 1").accountID, "Calendar 2", "calendar2-test", DefaultColour, "Calendar Description 2"));
CalendarDataStorage GetCalendarTest;
- GetCalendarTest.AddAccount("Test Account 1");
- GetCalendarTest.AddAccount("Test Account 2");
- GetCalendarTest.AddAccount("Test Account 3");
+ GetCalendarTest.AddAccount("Test Account 1", 1);
+ GetCalendarTest.AddAccount("Test Account 2", 2);
+ GetCalendarTest.AddAccount("Test Account 3", 3);
ASSERT_EQ(CDSCALENDAR_OK, GetCalendarTest.AddCalendar(GetCalendarTest.GetAccount("Test Account 1").accountID, "Calendar 1", "calendar1-test", DefaultColour, "Calendar Description 1"));
ASSERT_EQ(CDSCALENDAR_OK, GetCalendarTest.AddCalendar(GetCalendarTest.GetAccount("Test Account 1").accountID, "Calendar 2", "calendar2-test", DefaultColour, "Calendar Description 2"));
CalendarDataStorage UpdateCalendarTest;
- UpdateCalendarTest.AddAccount("Test Account 1");
+ UpdateCalendarTest.AddAccount("Test Account 1", 1);
ASSERT_EQ(CDSCALENDAR_OK, UpdateCalendarTest.AddCalendar(UpdateCalendarTest.GetAccount("Test Account 1").accountID, "Calendar 1", "calendar1-test", DefaultColour, "Calendar Description 1"));
CalendarDataStorage UpdateCalendarTest;
- UpdateCalendarTest.AddAccount("Test Account 1");
- UpdateCalendarTest.AddAccount("Test Account 2");
+ UpdateCalendarTest.AddAccount("Test Account 1", 1);
+ UpdateCalendarTest.AddAccount("Test Account 2", 2);
ASSERT_EQ(CDSCALENDAR_OK, UpdateCalendarTest.AddCalendar(UpdateCalendarTest.GetAccount("Test Account 1").accountID, "Calendar 1", "calendar1-test", DefaultColour, "Calendar Description 1"));
ASSERT_EQ(CDSCALENDAR_OK, UpdateCalendarTest.AddCalendar(UpdateCalendarTest.GetAccount("Test Account 2").accountID, "Calendar 1", "calendar1-test", DefaultColour, "Calendar Description 2"));
CalendarDataStorage UpdateCalendarTest;
- UpdateCalendarTest.AddAccount("Test Account 1");
- UpdateCalendarTest.AddAccount("Test Account 2");
- UpdateCalendarTest.AddAccount("Test Account 3");
+ UpdateCalendarTest.AddAccount("Test Account 1", 1);
+ UpdateCalendarTest.AddAccount("Test Account 2", 2);
+ UpdateCalendarTest.AddAccount("Test Account 3", 3);
ASSERT_EQ(CDSCALENDAR_OK, UpdateCalendarTest.AddCalendar(UpdateCalendarTest.GetAccount("Test Account 1").accountID, "Calendar 1", "calendar1-test", DefaultColour, "Calendar Description 1"));
ASSERT_EQ(CDSCALENDAR_OK, UpdateCalendarTest.AddCalendar(UpdateCalendarTest.GetAccount("Test Account 2").accountID, "Calendar 1", "calendar1-test", DefaultColour, "Calendar Description 2"));
CalendarDataStorage UpdateCalendarTest;
- UpdateCalendarTest.AddAccount("Test Account 1");
+ UpdateCalendarTest.AddAccount("Test Account 1", 1);
ASSERT_EQ(CDSCALENDAR_OK, UpdateCalendarTest.AddCalendar(UpdateCalendarTest.GetAccount("Test Account 1").accountID, "Calendar 1", "calendar1-test", DefaultColour, "Calendar Description 1"));
ASSERT_EQ(CDSCALENDAR_OK, UpdateCalendarTest.AddCalendar(UpdateCalendarTest.GetAccount("Test Account 1").accountID, "Calendar 2", "calendar2-test", DefaultColour, "Calendar Description 2"));
CalendarDataStorage UpdateCalendarTest;
- UpdateCalendarTest.AddAccount("Test Account 1");
- UpdateCalendarTest.AddAccount("Test Account 2");
+ UpdateCalendarTest.AddAccount("Test Account 1", 1);
+ UpdateCalendarTest.AddAccount("Test Account 2", 2);
ASSERT_EQ(CDSCALENDAR_OK, UpdateCalendarTest.AddCalendar(UpdateCalendarTest.GetAccount("Test Account 1").accountID, "Calendar 1", "calendar1-test", DefaultColour, "Calendar Description 1"));
ASSERT_EQ(CDSCALENDAR_OK, UpdateCalendarTest.AddCalendar(UpdateCalendarTest.GetAccount("Test Account 1").accountID, "Calendar 2", "calendar2-test", DefaultColour, "Calendar Description 2"));
CalendarDataStorage UpdateCalendarTest;
- UpdateCalendarTest.AddAccount("Test Account 1");
- UpdateCalendarTest.AddAccount("Test Account 2");
- UpdateCalendarTest.AddAccount("Test Account 3");
+ UpdateCalendarTest.AddAccount("Test Account 1", 1);
+ UpdateCalendarTest.AddAccount("Test Account 2", 2);
+ UpdateCalendarTest.AddAccount("Test Account 3", 3);
ASSERT_EQ(CDSCALENDAR_OK, UpdateCalendarTest.AddCalendar(UpdateCalendarTest.GetAccount("Test Account 1").accountID, "Calendar 1", "calendar1-test", DefaultColour, "Calendar Description 1"));
ASSERT_EQ(CDSCALENDAR_OK, UpdateCalendarTest.AddCalendar(UpdateCalendarTest.GetAccount("Test Account 1").accountID, "Calendar 2", "calendar2-test", DefaultColour, "Calendar Description 2"));
CalendarDataStorage UpdateCalendarTest;
- UpdateCalendarTest.AddAccount("Test Account 1");
+ UpdateCalendarTest.AddAccount("Test Account 1", 1);
ASSERT_EQ(CDSCALENDAR_OK, UpdateCalendarTest.AddCalendar(UpdateCalendarTest.GetAccount("Test Account 1").accountID, "Calendar 1", "calendar1-test", DefaultColour, "Calendar Description 1"));
ASSERT_EQ(CDSCALENDAR_OK, UpdateCalendarTest.AddCalendar(UpdateCalendarTest.GetAccount("Test Account 1").accountID, "Calendar 2", "calendar2-test", DefaultColour, "Calendar Description 2"));
CalendarDataStorage UpdateCalendarTest;
- UpdateCalendarTest.AddAccount("Test Account 1");
- UpdateCalendarTest.AddAccount("Test Account 2");
+ UpdateCalendarTest.AddAccount("Test Account 1", 1);
+ UpdateCalendarTest.AddAccount("Test Account 2", 2);
ASSERT_EQ(CDSCALENDAR_OK, UpdateCalendarTest.AddCalendar(UpdateCalendarTest.GetAccount("Test Account 1").accountID, "Calendar 1", "calendar1-test", DefaultColour, "Calendar Description 1"));
ASSERT_EQ(CDSCALENDAR_OK, UpdateCalendarTest.AddCalendar(UpdateCalendarTest.GetAccount("Test Account 1").accountID, "Calendar 2", "calendar2-test", DefaultColour, "Calendar Description 2"));
CalendarDataStorage UpdateCalendarTest;
- UpdateCalendarTest.AddAccount("Test Account 1");
- UpdateCalendarTest.AddAccount("Test Account 2");
- UpdateCalendarTest.AddAccount("Test Account 3");
+ UpdateCalendarTest.AddAccount("Test Account 1", 1);
+ UpdateCalendarTest.AddAccount("Test Account 2", 2);
+ UpdateCalendarTest.AddAccount("Test Account 3", 3);
ASSERT_EQ(CDSCALENDAR_OK, UpdateCalendarTest.AddCalendar(UpdateCalendarTest.GetAccount("Test Account 1").accountID, "Calendar 1", "calendar1-test", DefaultColour, "Calendar Description 1"));
ASSERT_EQ(CDSCALENDAR_OK, UpdateCalendarTest.AddCalendar(UpdateCalendarTest.GetAccount("Test Account 1").accountID, "Calendar 2", "calendar2-test", DefaultColour, "Calendar Description 2"));
CalendarDataStorage DeleteCalendarTest;
int calendarID = 0;
- DeleteCalendarTest.AddAccount("Test Account 1");
+ DeleteCalendarTest.AddAccount("Test Account 1", 1);
ASSERT_EQ(CDSCALENDAR_OK, DeleteCalendarTest.AddCalendar(DeleteCalendarTest.GetAccount("Test Account 1").accountID, "Calendar 1", "calendar1-test", DefaultColour, "Calendar Description 1"));
int calendarID1 = 0;
int calendarID2 = 0;
- DeleteCalendarTest.AddAccount("Test Account 1");
- DeleteCalendarTest.AddAccount("Test Account 2");
+ DeleteCalendarTest.AddAccount("Test Account 1", 1);
+ DeleteCalendarTest.AddAccount("Test Account 2", 2);
ASSERT_EQ(CDSCALENDAR_OK, DeleteCalendarTest.AddCalendar(DeleteCalendarTest.GetAccount("Test Account 1").accountID, "Calendar 1", "calendar1-test", DefaultColour, "Calendar Description 1"));
ASSERT_EQ(CDSCALENDAR_OK, DeleteCalendarTest.AddCalendar(DeleteCalendarTest.GetAccount("Test Account 1").accountID, "Calendar 2", "calendar2-test", DefaultColour, "Calendar Description 1"));
int calendarID2 = 0;
int calendarID3 = 0;
- DeleteCalendarTest.AddAccount("Test Account 1");
- DeleteCalendarTest.AddAccount("Test Account 2");
- DeleteCalendarTest.AddAccount("Test Account 3");
+ DeleteCalendarTest.AddAccount("Test Account 1", 1);
+ DeleteCalendarTest.AddAccount("Test Account 2", 2);
+ DeleteCalendarTest.AddAccount("Test Account 3", 3);
ASSERT_EQ(CDSCALENDAR_OK, DeleteCalendarTest.AddCalendar(DeleteCalendarTest.GetAccount("Test Account 1").accountID, "Calendar 1", "calendar1-test", DefaultColour, "Calendar Description 1"));
ASSERT_EQ(CDSCALENDAR_OK, DeleteCalendarTest.AddCalendar(DeleteCalendarTest.GetAccount("Test Account 1").accountID, "Calendar 2", "calendar2-test", DefaultColour, "Calendar Description 1"));
CalendarDataStorage AddEventTest;
- AddEventTest.AddAccount("Test Account 1");
+ AddEventTest.AddAccount("Test Account 1", 1);
AddEventTest.AddCalendar(1, "Calendar 1", "calendar1-test", DefaultColour, "Calendar Description 1");
CDSAddEntryResult addEventResult = AddEventTest.AddEvent(1, "CalendarEvent1.ics");
CalendarDataStorage AddEventTest;
- AddEventTest.AddAccount("Test Account 1");
+ AddEventTest.AddAccount("Test Account 1", 1);
AddEventTest.AddCalendar(1, "Calendar 1", "calendar1-test", DefaultColour, "Calendar Description 1");
CDSAddEntryResult addEvent1Result = AddEventTest.AddEvent(1, "CalendarEvent1.ics");
CalendarDataStorage AddEventTest;
- AddEventTest.AddAccount("Test Account 1");
+ AddEventTest.AddAccount("Test Account 1", 1);
AddEventTest.AddCalendar(1, "Calendar 1", "calendar1-test", DefaultColour, "Calendar Description 1");
CDSAddEntryResult addEvent1Result = AddEventTest.AddEvent(1, "CalendarEvent1.ics");
CalendarDataStorage AddEventTest;
- AddEventTest.AddAccount("Test Account 1");
+ AddEventTest.AddAccount("Test Account 1", 1);
AddEventTest.AddCalendar(1, "Calendar 1", "calendar1-test", DefaultColour, "Calendar Description 1");
CDSAddEntryResult addEventResult = AddEventTest.AddEvent(1, "CalendarEvent1.ics");
CalendarDataStorage AddEventTest;
- AddEventTest.AddAccount("Test Account 1");
+ AddEventTest.AddAccount("Test Account 1", 1);
AddEventTest.AddCalendar(1, "Calendar 1", "calendar1-test", DefaultColour, "Calendar Description 1");
CDSAddEntryResult addEventResult = AddEventTest.AddEvent(1, "CalendarEvent2.ics");
CalendarDataStorage AddEventTest;
- AddEventTest.AddAccount("Test Account 1");
+ AddEventTest.AddAccount("Test Account 1", 1);
AddEventTest.AddCalendar(1, "Calendar 1", "calendar1-test", DefaultColour, "Calendar Description 1");
CDSAddEntryResult addEvent1Result = AddEventTest.AddEvent(1, "CalendarEvent1.ics");
CDSAddEntryResult addEvent2Result = AddEventTest.AddEvent(1, "CalendarEvent2.ics");
CalendarDataStorage AddEventTest;
- AddEventTest.AddAccount("Test Account 1");
+ AddEventTest.AddAccount("Test Account 1", 1);
AddEventTest.AddCalendar(1, "Calendar 1", "calendar1-test", DefaultColour, "Calendar Description 1");
CDSAddEntryResult addEvent1Result = AddEventTest.AddEvent(1, "CalendarEvent1.ics");
CDSAddEntryResult addEvent2Result = AddEventTest.AddEvent(1, "CalendarEvent1.ics");
CalendarDataStorage AddEventTest;
- AddEventTest.AddAccount("Test Account 1");
+ AddEventTest.AddAccount("Test Account 1", 1);
AddEventTest.AddCalendar(1, "Calendar 1", "calendar1-test", DefaultColour, "Calendar Description 1");
CDSAddEntryResult addEvent1Result = AddEventTest.AddEvent(1, "CalendarEvent1.ics");
CDSAddEntryResult addEvent2Result = AddEventTest.AddEvent(1, "CalendarEvent2.ics");
CalendarDataStorage DeleteEventTest;
- DeleteEventTest.AddAccount("Test Account 1");
+ DeleteEventTest.AddAccount("Test Account 1", 1);
DeleteEventTest.AddCalendar(1, "Calendar 1", "calendar1-test", DefaultColour, "Calendar Description 1");
CDSAddEntryResult addEventResult = DeleteEventTest.AddEvent(1, "CalendarEvent1.ics");
CalendarDataStorage DeleteEventTest;
- DeleteEventTest.AddAccount("Test Account 1");
+ DeleteEventTest.AddAccount("Test Account 1", 1);
DeleteEventTest.AddCalendar(1, "Calendar 1", "calendar1-test", DefaultColour, "Calendar Description 1");
CDSAddEntryResult addEvent1Result = DeleteEventTest.AddEvent(1, "CalendarEvent1.ics");
CDSAddEntryResult addEvent2Result = DeleteEventTest.AddEvent(1, "CalendarEvent2.ics");
CalendarDataStorage DeleteEventTest;
- DeleteEventTest.AddAccount("Test Account 1");
+ DeleteEventTest.AddAccount("Test Account 1", 1);
DeleteEventTest.AddCalendar(1, "Calendar 1", "calendar1-test", DefaultColour, "Calendar Description 1");
CDSAddEntryResult addEvent1Result = DeleteEventTest.AddEvent(1, "CalendarEvent1.ics");
CDSAddEntryResult addEvent2Result = DeleteEventTest.AddEvent(1, "CalendarEvent2.ics");
CalendarDataStorage DeleteEventTest;
- DeleteEventTest.AddAccount("Test Account 1");
+ DeleteEventTest.AddAccount("Test Account 1", 1);
DeleteEventTest.AddCalendar(1, "Calendar 1", "calendar1-test", DefaultColour, "Calendar Description 1");
CDSAddEntryResult addEvent1Result = DeleteEventTest.AddEvent(1, "CalendarEvent1.ics");
CDSAddEntryResult addEvent2Result = DeleteEventTest.AddEvent(1, "CalendarEvent2.ics");
CalendarDataStorage DeleteEventTest;
- DeleteEventTest.AddAccount("Test Account 1");
+ DeleteEventTest.AddAccount("Test Account 1", 1);
DeleteEventTest.AddCalendar(1, "Calendar 1", "calendar1-test", DefaultColour, "Calendar Description 1");
DeleteEventTest.AddCalendar(1, "Calendar 1", "calendar2-test", DefaultColour, "Calendar Description 1");
CalendarDataStorage DeleteEventTest;
- DeleteEventTest.AddAccount("Test Account 1");
+ DeleteEventTest.AddAccount("Test Account 1", 1);
DeleteEventTest.AddCalendar(1, "Calendar 1", "calendar1-test", DefaultColour, "Calendar Description 1");
DeleteEventTest.AddCalendar(1, "Calendar 2", "calendar2-test", DefaultColour, "Calendar Description 1");
DeleteEventTest.AddCalendar(1, "Calendar 3", "calendar3-test", DefaultColour, "Calendar Description 1");
CalendarDataStorage DeleteAccountTest;
- DeleteAccountTest.AddAccount("Test Account 1");
+ DeleteAccountTest.AddAccount("Test Account 1", 1);
DeleteAccountTest.AddCalendar(1, "Calendar 1", "calendar1-test", DefaultColour, "Calendar Description 1");
// Setup and delete the first account.
CalendarDataStorage DeleteAccountTest;
- DeleteAccountTest.AddAccount("Test Account 1");
- DeleteAccountTest.AddAccount("Test Account 2");
- DeleteAccountTest.AddAccount("Test Account 3");
+ DeleteAccountTest.AddAccount("Test Account 1", 1);
+ DeleteAccountTest.AddAccount("Test Account 2", 2);
+ DeleteAccountTest.AddAccount("Test Account 3", 3);
// Setup and delete the first account.
CalendarDataStorage DeleteAccountTest;
- DeleteAccountTest.AddAccount("Test Account 1");
- DeleteAccountTest.AddAccount("Test Account 2");
- DeleteAccountTest.AddAccount("Test Account 3");
+ DeleteAccountTest.AddAccount("Test Account 1", 1);
+ DeleteAccountTest.AddAccount("Test Account 2", 2);
+ DeleteAccountTest.AddAccount("Test Account 3", 3);
// Setup and delete the first account.
CalendarDataStorage GetEventsListTest;
- GetEventsListTest.AddAccount("Test Account 1");
+ GetEventsListTest.AddAccount("Test Account 1", 1);
// Setup and delete the first account.
CalendarDataStorage GetEventsListTest;
- GetEventsListTest.AddAccount("Test Account 1");
+ GetEventsListTest.AddAccount("Test Account 1", 1);
// Setup and delete the first account.
CalendarDataStorage GetEventsListTest;
- GetEventsListTest.AddAccount("Test Account 1");
+ GetEventsListTest.AddAccount("Test Account 1", 1);
// Setup and delete the first account.
CalendarDataStorage GetEventsListTest;
- GetEventsListTest.AddAccount("Test Account 1");
+ GetEventsListTest.AddAccount("Test Account 1", 1);
// Setup the first account.
CalendarDataStorage GetEventsListTest;
- GetEventsListTest.AddAccount("Test Account 1");
- GetEventsListTest.AddAccount("Test Account 2");
+ GetEventsListTest.AddAccount("Test Account 1", 1);
+ GetEventsListTest.AddAccount("Test Account 2", 2);
// Setup the first account.
CalendarDataStorage GetEventsListTest;
- GetEventsListTest.AddAccount("Test Account 1");
- GetEventsListTest.AddAccount("Test Account 2");
- GetEventsListTest.AddAccount("Test Account 3");
+ GetEventsListTest.AddAccount("Test Account 1", 1);
+ GetEventsListTest.AddAccount("Test Account 2", 2);
+ GetEventsListTest.AddAccount("Test Account 3", 3);
// Setup the first account.