Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/JA-112 BrowseServiceTests #102

Merged
merged 19 commits into from
May 29, 2024
Merged

Commits on May 21, 2024

  1. Configuration menu
    Copy the full SHA
    8caa8bf View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    b3fa6d1 View commit details
    Browse the repository at this point in the history
  3. Add test to BrowseServiceTests for invalid request case

    Test - GetBrowseAdsPage_WhenRequestIsInvalid_ShouldReturnUnsuccessfulResponse
    Zjyslav committed May 21, 2024
    Configuration menu
    Copy the full SHA
    db14799 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    3784419 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    df0c4d4 View commit details
    Browse the repository at this point in the history
  6. Add 4 tests to BrowseServiceTests for GetBrowseAdsPage

    Tests:
    - GetBrowseAdsPage_WhenPageNumberIsLargerThanAvailable_ShouldReturnLastPage
    - GetBrowseAdsPage_WhenRequestIsValid_ShouldReturnCorrectNumberOfAds
    - GetBrowseAdsPage_WhenRequestIsValid_ShouldReturnCorrectTotalPages
    - GetBrowseAdsPage_WhenRequestIsValid_ShouldReturnCorrectAds
    Zjyslav committed May 21, 2024
    Configuration menu
    Copy the full SHA
    a05d230 View commit details
    Browse the repository at this point in the history
  7. Add 6 tests to BrowseServiceTests for GetAdDetails

    Tests:
    - GetAdDetails_WhenAdDoesntExist_ShouldReturnNull
    - GetAdDetails_WhenUserIsOwner_ShouldReturnCorrectUserRelationship
    - GetAdDetails_WhenUserIsAcceptedStudent_ShouldReturnCorrectUserRelationship
    - GetAdDetails_WhenUserIsPendingStudent_ShouldReturnCorrectUserRelationship
    - GetAdDetails_WhenUserIsHasNoRelationshipToAd_ShouldReturnCorrectUserRelationship
    - GetAdDetails_WhenAdExists_ShouldReturnCorrectAdDetails
    
    Also added 1 helper method - SetupMockGetAdById
    Zjyslav committed May 21, 2024
    Configuration menu
    Copy the full SHA
    206487c View commit details
    Browse the repository at this point in the history
  8. Add 8 tests to BrowseServiceTests for GetUsersSchedule

    - GetUsersSchedule_WhenUserHasNoAds_ShouldReturnEmptyTutorsSchedule
    - GetUsersSchedule_WhenUserHasNoScheduleItemRequests_ShouldReturnEmptyStudentsSchedule
    - GetUsersSchedule_WhenUserHasAdsWithScheduleItems_ShouldReturnCorrectTutorsSchedule
    - GetUsersSchedule_WhenUserHasScheduleItemRequests_ShouldReturnCorrectStudentsSchedule
    - GetUsersSchedule_WhenNoStudentIsAccepted_ShouldReturnNullAcceptedStudentsName
    - GetUsersSchedule_WhenAStudentIsAccepted_ShouldReturnStudentsName
    - GetUsersSchedule_WhenRequestIsAccepted_ShouldReturnCorrectStatus
    - GetUsersSchedule_WhenRequestIsPending_ShouldReturnCorrectStatus
    
    Also added and modified some helper methods.
    Zjyslav committed May 21, 2024
    Configuration menu
    Copy the full SHA
    12cd2a5 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    4e917e0 View commit details
    Browse the repository at this point in the history

Commits on May 22, 2024

  1. Fix some issues in BrowseServiceTests

    - Change in method name
    - Fixed incorrect assertion
    - Spacing adjustments
    - Added and renamed some actual and expected variables
    Zjyslav committed May 22, 2024
    Configuration menu
    Copy the full SHA
    5a64d37 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    8f77c33 View commit details
    Browse the repository at this point in the history

Commits on May 26, 2024

  1. Configuration menu
    Copy the full SHA
    0085b64 View commit details
    Browse the repository at this point in the history

Commits on May 27, 2024

  1. Configuration menu
    Copy the full SHA
    090ff4e View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    d0b8ce0 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    e453674 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    f75448c View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    0479ec4 View commit details
    Browse the repository at this point in the history

Commits on May 29, 2024

  1. Configuration menu
    Copy the full SHA
    6c8343d View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    2b5a960 View commit details
    Browse the repository at this point in the history