FakeConnectionObject FakeConnection2(ServerAddress2, 8800, ServerUser2, ServerPass2, true);
FakeConnectionObject FakeConnection3(ServerAddress3, 8008, ServerUser3, ServerPass3, false);
+ FakeConnection1.ResultTestMode = true;
+ FakeConnection2.ResultTestMode = true;
+ FakeConnection3.ResultTestMode = true;
+
EXPECT_EQ("gibberish.invalid", FakeConnection1.GetServerAddress());
EXPECT_EQ(8080, FakeConnection1.GetServerPort());
EXPECT_EQ("user", FakeConnection1.GetServerUser());
FakeConnectionObject FakeConnection2(ServerAddress2, 8800, ServerUser2, ServerPass2, true, "/prefix2", "Account2");
FakeConnectionObject FakeConnection3(ServerAddress3, 8008, ServerUser3, ServerPass3, false, "/prefix3", "Account3");
+ FakeConnection1.ResultTestMode = false;
+ FakeConnection2.ResultTestMode = false;
+ FakeConnection3.ResultTestMode = false;
+
EXPECT_EQ("gibberish.invalid", FakeConnection1.GetServerAddress());
EXPECT_EQ(8080, FakeConnection1.GetServerPort());
EXPECT_EQ("user", FakeConnection1.GetServerUser());
FakeConnection.TestSessionCode = 22;
FakeConnection.TestResultMessage = "You do not have permission to delete this resource.";
- COServerResponse DeleteContactResult = FakeConnection.DeleteContact("testfile.vcf", "a23124sfadfdvxc1646541bsdfaf");
+ COServerResponse DeleteContactResult = FakeConnection.DeleteContact("testfile.vcf");
EXPECT_EQ(COREQUEST_ERROR_SERVER, DeleteContactResult.RequestResult);
EXPECT_EQ("", DeleteContactResult.EntityTag);
FakeConnection.TestSessionCode = 22;
FakeConnection.TestResultMessage = "The resource could not be found.";
- COServerResponse DeleteContactResult = FakeConnection.DeleteContact("testfile.vcf", "a23124sfadfdvxc1646541bsdfaf");
+ COServerResponse DeleteContactResult = FakeConnection.DeleteContact("testfile.vcf");
EXPECT_EQ(COREQUEST_ERROR_SERVER, DeleteContactResult.RequestResult);
EXPECT_EQ("", DeleteContactResult.EntityTag);
FakeConnection.TestSessionCode = 0;
FakeConnection.TestResultMessage = "";
- COServerResponse DeleteContactResult = FakeConnection.DeleteContact("testfile.vcf", "a23124sfadfdvxc1646541bsdfaf");
+ COServerResponse DeleteContactResult = FakeConnection.DeleteContact("testfile.vcf");
EXPECT_EQ(COREQUEST_ERROR_NOTCONNECTED, DeleteContactResult.RequestResult);
EXPECT_EQ("", DeleteContactResult.EntityTag);