Skip to content

Commit

Permalink
all tests for customer work
Browse files Browse the repository at this point in the history
  • Loading branch information
bryce.coon authored and bryce.coon committed Feb 29, 2024
1 parent 68162a6 commit ffaac8a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions KakeysBakery.Tests/CustomerTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public async Task Get_CustomerList()
// ARRANGE
Customer testCustomer = new Customer()
{
Id = 1,
Id = 6,
Email = "test Email",
Forename = "first",
Surname = "last",
Expand All @@ -55,7 +55,7 @@ public async Task Get_Customer_ById()
// ARRANGE
Customer testCustomer = new Customer()
{
Id = 1,
Id = 4,
Email = "test Email",
Forename = "first",
Surname = "last",
Expand Down Expand Up @@ -85,10 +85,10 @@ public async Task Get_Customer_ByName()
// ARRANGE
Customer testCustomer = new Customer()
{
Id = 1,
Id = 3,
Email = "test Email",
Forename = "first",
Surname = "last",
Forename = "Jeffrey",
Surname = "aheie",
Phone = "8018018888",
Preferredcontact = "Text"

Expand All @@ -115,7 +115,7 @@ public async Task Create_Customer()
// ARRANGE
Customer testCustomer = new Customer()
{
Id = 1,
Id = 5,
Email = "test Email",
Forename = "first",
Surname = "last",
Expand Down Expand Up @@ -173,7 +173,7 @@ public async Task Delete_Customer()
// ARRANGE
Customer testCustomer = new Customer()
{
Id = 1,
Id = 2,
Email = "test Email",
Forename = "first",
Surname = "last",
Expand Down
2 changes: 1 addition & 1 deletion KakeysBakery.Tests/dataDump.sql
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ CREATE TABLE customer (
preferredcontact varchar(30) NULL,
issubscribed bool NULL,
CONSTRAINT customer_pkey PRIMARY KEY (id),
CONSTRAINT customer_preferredcontact_check CHECK (((preferredcontact)::text = ((('Text'::text || 'Call'::text) || 'Email'::text) || 'Other'::text)))
CONSTRAINT customer_preferredcontact_check CHECK (preferredcontact IN ('Text', 'Call', 'Email', 'Other'))
);


Expand Down

0 comments on commit ffaac8a

Please sign in to comment.