{"id":20137915,"url":"https://github.com/leeocoder/rent-car-tdd-bdd","last_synced_at":"2026-05-13T04:06:43.263Z","repository":{"id":112396276,"uuid":"433659578","full_name":"leeocoder/rent-car-tdd-bdd","owner":"leeocoder","description":null,"archived":false,"fork":false,"pushed_at":"2021-12-07T02:01:26.000Z","size":62,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-13T09:46:32.981Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/leeocoder.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-12-01T02:43:31.000Z","updated_at":"2021-12-07T02:01:29.000Z","dependencies_parsed_at":"2023-05-14T11:45:21.833Z","dependency_job_id":null,"html_url":"https://github.com/leeocoder/rent-car-tdd-bdd","commit_stats":null,"previous_names":["leeocoder/rent-car-tdd-bdd"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leeocoder%2Frent-car-tdd-bdd","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leeocoder%2Frent-car-tdd-bdd/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leeocoder%2Frent-car-tdd-bdd/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leeocoder%2Frent-car-tdd-bdd/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/leeocoder","download_url":"https://codeload.github.com/leeocoder/rent-car-tdd-bdd/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241582553,"owners_count":19985845,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-13T21:30:12.745Z","updated_at":"2026-05-13T04:06:43.232Z","avatar_url":"https://github.com/leeocoder.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Story: Renting a car\n\n## Use Case 01\n\nAs a system user\n\nIn order to get an available car in a specific category\n\nGiven a car category containing 3 different cars\n\nWhen I check if there's a car available\n\nThen it should choose randomly a car from the category chosen\n\n## Use Case 02\n\nAs a system user\n\nIn order to calculate the final renting price\n\nGiven a customer who wants to rent a car for 5 days\n\nAnd he is 50 years old\n\nWhen he chooses a car category that costs $37.6 per day\n\nThen I must add the Tax of his age which is 30% to the car category price\n\nThen the final formula will be `((price per day * Tax) * number of days)`\n\nAnd the final result will be `((37.6 * 1.3) * 5)= 244.4`\n\nAnd the final price will be printed in Brazilian Portuguese format as \"R$ 244,40\"\n\n## Use Case 03\n\nAs a system user\n\nIn order to register a renting transaction\n\nGiven a registered customer who is 50 years old\n\nAnd a car model that costs $37.6 per day\n\nAnd a delivery date that is for 05 days behind\n\nAnd given an actual date 05/11/2020\n\nWhen I rent a car I should see the customer data\n\nAnd the car selected\n\nAnd the final price which will be R$ 244,40\n\nAnd DueDate which will be printed in Brazilian Portuguese format \"10 de Novembro de 2020\"\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleeocoder%2Frent-car-tdd-bdd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fleeocoder%2Frent-car-tdd-bdd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleeocoder%2Frent-car-tdd-bdd/lists"}