No3Mc / Phone-Paradise

Phone Paradise | Phone Selling Store

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Exception

Talhamemon25 opened this issue · comments

Describe the bug
Test method PhoneSystemTesting.tstCustomerCollection.AddMethodOK threw exception:
System.Data.SqlClient.SqlException: Violation of PRIMARY KEY constraint 'PK__tblCust__049E3A8989A07B39'. Cannot insert duplicate key in object 'dbo.tblCust'. The duplicate key value is (111).

Error Message:

Test method PhoneSystemTesting.tstCustomerCollection.AddMethodOK threw exception:
System.Data.SqlClient.SqlException: Violation of PRIMARY KEY constraint 'PK__tblCust__049E3A8989A07B39'. Cannot insert duplicate key in object 'dbo.tblCust'. The duplicate key value is (111).
The statement has been terminated.
The 'sproc_tblCust_Insert' procedure attempted to return a status of NULL, which is not allowed. A status of 0 will be returned instead.

To Reproduce
Enter any int still it won't work. Even if the key is new and non-existent.

Expected behavior
Should've passed instead of failing.

Screenshots
image
image

Additional context
Tested on VMware horizon Game Development remote pc

Redo the valid method.
@Talhamemon25