Implemented MVVM pattern for filtering Worker profiles by hourly rate, location, and other attributes.
Created WorkerProfile to represent firebase user profiles
Created WorkerProfileRepository to handle Firestore queries and added dynamic filtering with whereLessThan() for hourlyRate.
Added WorkerProfileViewModel to manage state and interact with the repository for filtering logic.
Implemented unit tests for WorkerProfileRepository, WorkerProfileViewModel and WorkerProfile using Mockito to mock Firestore queries and repository methods.
Note: Tests are currently failing due to Protobuf version conflicts (NoSuchMethodError). further investigation is required to resolve compatibility issues with Firebase Firestore.
…filtering and add unit tests
Note: Tests are currently failing due to Protobuf version conflicts (NoSuchMethodError). further investigation is required to resolve compatibility issues with Firebase Firestore.