git fetch --all
git checkout km-customer-manager-db
# navigate to the test project
cd bangazon-cli.Tests
dotnet restore
dotnet test
Impacted Areas in Application
List general components of the application that this PR will affect:
For tests, when you create a customer you must provide all of the customer properties except Id.
Any where you instantiate the CustomerManager you'll need to pass in a DatabaseInterface object
Models/Customer.cs - modified to work with DB
Managers/CustomerManager.cs - modified to work with DB
Data/DatabaseInterface.cs
Mentions @username
Tag users that need to review this code
Definition of Done
The project must be fully documented. This includes the following:
Complete README that documents the steps to install the code, how to install any dependencies, or system configuration needed.
Every class must be documented with purpose, author, and methods.
Every method must be documented with purpose and argument list - which itself must contain a short purpose for each argument.
The project must be able to run fully, and without errors, on each teammate's system.
Fulfills every requirement.
Every line of code has been peer reviewed.
For projects that require unit testing, core functionality must be identified and have at least one test for each.
Link to Ticket
1 User Should Be Able To Create Customer Account
Description of Proposed Changes
Steps to Test
Update Environment Variable
We will use two database files, one for development and one for testing. We need environment variables to store the path to both.
In zshrc environment variables are in quotes - no need for semi colons at the end Be sure your environment variable is set before running test
Example:
When you've updated the file
Pull the branch down and run tests
Impacted Areas in Application
List general components of the application that this PR will affect: For tests, when you create a customer you must provide all of the customer properties except Id. Any where you instantiate the CustomerManager you'll need to pass in a DatabaseInterface object
Mentions @username
Tag users that need to review this code
Definition of Done