public void Import_Template_With_Columns_In_Random_Order()
 {
     OrganizationCreator.ImportTemplateWithColumnsInRandomOrder();
     AssertThat.IsTrue(OrganizationCreator.IsOrganizationFileImportedSuccessfully, "Organization was not imported successfully thought it should");
     AssertThat.IsTrue(OrganizationCreator.FirstOrganization.AreOrganizationFieldValuesSavedCorrectly, "Organization field values were not saved correctly");
 }
Esempio n. 2
0
 public void Default_Sorting()
 {
     LeftSideMenu.GoToOrganizations();
     AssertThat.IsTrue(OrganizationsPage.IsOrganizationListSortedByNameAscending, "Organizations are not sorted by default according to their names.");
 }
Esempio n. 3
0
 /// <summary>
 /// Switch to use conneciton
 /// </summary>
 /// <param name="name"></param>
 public static void SwitchChannel(string name)
 {
     AssertThat.IsTrue(_connections.ContainsKey(name));
     _tcpConnection = _connections[name];
 }
Esempio n. 4
0
 /// <summary>
 /// Unregist by user
 /// </summary>
 /// <param name="key"></param>
 public static void Unregist(int key)
 {
     AssertThat.IsTrue(_msgs.ContainsKey(key));
     _msgs.Remove(key);
 }
Esempio n. 5
0
 public void Call_A_Coworker_Telephone_From_Coworker_List_Page()
 {
     LeftSideMenu.GoToCoworkers();
     AssertThat.IsTrue(CoworkersPage.IsCoworkerMobilePhoneCallable, "Coworker mobile phone is not callable from within contact list page");
     AssertThat.IsTrue(CoworkersPage.IsCoworkerWorkPhoneCallable, "Coworker work phone is not callable from within contact list page");
 }
Esempio n. 6
0
 /// <summary>
 /// Dispatch message from socket
 /// </summary>
 /// <param name="key"></param>
 /// <param name="bytes"></param>
 public static void Dispatch(string key, byte[] bytes)
 {
     AssertThat.IsNotNullOrEmpty(key);
     AssertThat.IsTrue(_msgs.ContainsKey(key));
     _msgs[key].OnBytes(bytes);
 }
 public void Organization_Emails_Are_Emailable()
 {
     OrganizationCreator.CreateOrganizationWithAllValues();
     AssertThat.IsTrue(OrganizationViewPage.IsEmailEmailable, "Email link is not active but it should");
 }
Esempio n. 8
0
 public void Signup_With_Email_From_Non_Existing_Domain()
 {
     LandingPage.SignupWithEmail("*****@*****.**");
     AssertThat.IsTrue(ThankYouPage.IsAt, "Browser should navigate to thank you page after sending sign up confirmation email.");
 }
Esempio n. 9
0
 public void Signup_With_Email_From_Existing_Account()
 {
     LandingPage.SignupWithEmail("*****@*****.**");
     AssertThat.IsTrue(LandingPage.IsEmailAlreadyExistsMessageShown, "There should be a message informing that a user with the given email, is already registered.");
 }
 public void Import_Contact_With_Overflow_Field_Values()
 {
     ContactCreator.ImportGmailCsvContactWithOverflowValues();
     AssertThat.IsTrue(ContactCreator.IsContactFileFailedToImport, "Contact was imported successfully but it does not contain value for last name field");
 }
Esempio n. 11
0
 public void Create_Organization_With_Extra_Null_Fields()
 {
     OrganizationCreator.CreateOrganizationWithNullValuesInExtraFields();
     AssertThat.IsTrue(OrganizationCreator.FirstOrganization.IsOrganizationCreatedSuccessfully, "Organization was not saved successfully though it should have.");
     AssertThat.IsTrue(OrganizationCreator.FirstOrganization.AreOrganizationFieldValuesSavedCorrectly, "Organization field values were not saved correctly");
 }
Esempio n. 12
0
 public void Filter_By_Departments_In_Correct_Initial_State()
 {
     AssertThat.IsTrue(ContactsPage.AreFilterByDepartmentsInCorrectState, "Filter By departments list is not in the correct initial state");
 }
Esempio n. 13
0
 public void Filter_By_Options_Are_In_Correct_Initial_State()
 {
     AssertThat.IsTrue(ContactsPage.AreFilterByOptionsInCorrectState, "Filter By filters are not in the correct initial state");
 }
Esempio n. 14
0
 public void Default_Sorting()
 {
     AssertThat.IsTrue(ContactsPage.IsContactListSortedByFirstNameAscending, "Contacts are not sorted by default according to their first/last name.");
 }
Esempio n. 15
0
 public void Departments_Filter_Is_In_Correct_Initial_State()
 {
     AssertThat.IsTrue(CoworkersPage.AreFilterByDepartmentsInCorrectState, "Departments filter list is not in the correct initial state");
 }
 public void Import_Contacts_With_All_Contact_Fields_Filled()
 {
     ContactCreator.ImportOutlookCsvContactWithAllValues();
     AssertThat.IsTrue(ContactCreator.IsContactFileImportedSuccessfully, "Contact was not imported successfully");
     AssertThat.IsTrue(ContactCreator.FirstContact.AreContactFieldValuesSavedCorrectly, "Contact field values where not saved correctly");
 }
Esempio n. 17
0
 public void Default_Sorting()
 {
     LeftSideMenu.GoToCoworkers();
     AssertThat.IsTrue(CoworkersPage.IsCoworkerListSortedByFirstNameAscending, "Coworkers are not sorted by default according to their first/last name.");
 }
 public void Import_Contact_Without_Value_In_Mandatory_Field()
 {
     ContactCreator.ImportOutlookCsvContactWithoutLastName();
     AssertThat.IsTrue(ContactCreator.IsContactFileFailedToImport, "Contact was imported successfully but it does not contain value for last name field");
 }
 public void Call_An_Organization_Telephone_Number()
 {
     OrganizationCreator.CreateSimpleOrganization();
     AssertThat.IsTrue(OrganizationViewPage.IsPhoneNumberCallable, "Organization telephone number is not callable");
 }
 public void Import_Contact_With_Overflow_Field_Values()
 {
     ContactCreator.ImportOutlookCsvContactWithOverflowValues();
     AssertThat.IsTrue(ContactCreator.IsContactFileFailedToImport, "Contact was imported successfully but it contains overflow values in its fields");
 }
 public void Check_Organization_Is_Shareable_With_Valid_Email()
 {
     OrganizationsPage.OpenFirstOrganization();
     AssertThat.IsTrue(OrganizationViewPage.IsOrganizationShareableTo(DummyData.EmailValue), "Though email inserted is of valid syntax, Share button is not enabled.");
 }
 public void Import_Organizations_With_Void_Lines_Between_Organizations()
 {
     OrganizationCreator.ImportTemplateWithVoidLinesBetweenOrganizations();
     AssertThat.IsTrue(OrganizationCreator.IsOrganizationFileImportedSuccessfully, "Contacts were not imported but they should.");
 }
Esempio n. 23
0
 public void Check_Contact_Is_Shareable_With_Valid_Email()
 {
     CoworkersPage.OpenFirstCoworker();
     AssertThat.IsTrue(CoworkerViewPage.IsCoworkerShareableTo(DummyData.EmailValue), "Though email inserted is of valid syntax, Share button is not enabled.");
 }
 public void Import_Organizations_With_Invalid_Combo_Box_Values()
 {
     OrganizationCreator.ImportTemplateOrganizationWithInvalidComboValues();
     AssertThat.IsTrue(OrganizationCreator.IsOrganizationFileFailedToImport, "Organization with invalid combo box values was imported but it should not");
 }
Esempio n. 25
0
 public void Check_That_Invite_Coworkers_Button_Works()
 {
     LeftSideMenu.GoToCoworkers();
     CoworkersPage.ClickInviteCoworkers();
     AssertThat.IsTrue(InvitePage.IsAt, "Browser should be at Invite new coworkers page, but is elsewhere.");
 }
 public void Import_Organization_With_Nonsense_Values()
 {
     OrganizationCreator.ImportOrganizationWithNonsenseValues();
     AssertThat.IsTrue(OrganizationCreator.IsOrganizationFileImportedSuccessfully, "Organization was not imported successfully thought it should");
     AssertThat.IsTrue(OrganizationCreator.FirstOrganization.AreOrganizationFieldValuesSavedCorrectly, "Organization field values were not saved correctly");
 }
Esempio n. 27
0
 public void IsTrue_True_NothingHappens()
 {
     AssertThat.IsTrue(true);
 }
Esempio n. 28
0
 /// <summary>
 /// Remove a conneciton
 /// </summary>
 /// <param name="name"></param>
 public static void RemoveConnection(string name)
 {
     AssertThat.IsTrue(_connections.ContainsKey(name));
     _connections.Remove(name);
 }