Skip to content

Commit

Permalink
New test added
Browse files Browse the repository at this point in the history
  • Loading branch information
sheryever committed Jul 31, 2022
1 parent 9663aee commit 56ea8d9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
6 changes: 3 additions & 3 deletions Source/SimpleAccess.SqlServer.Test/DbConfiguration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ public static class DbConfiguration
Insert INTO Branches VALUES(2, 1, 'Makkah', null,null, null);
Insert INTO Branches VALUES(3, 2, 'Karachi', null,null, null);
Insert INTO People VALUES(1, 'Ahmed', 1, '00000', 'Madina', 4000, 300);
Insert INTO People VALUES(2, 'Muhammad', 1, '000000', 'Makkah', 5000, null);
Insert INTO People VALUES(3, 'Karim', 1, '00000', null, 3000, 700);
Insert INTO People VALUES(1, 'Ahmed', 1, '00000', 'Madina', 4000, 300, 1);
Insert INTO People VALUES(2, 'Muhammad', 1, '000000', 'Makkah', 5000, null, 0);
Insert INTO People VALUES(3, 'Karim', 1, '00000', null, 3000, 700, null);
Insert INTO Employees VALUES(1, 'Ahmed', '00000', 'Madina', 4000, 300, 1000, 1, 'Sales');
Insert INTO Employees VALUES(2, 'Muhammad', '000000', 'Makkah', 5000, null, 1000, 1,'Sales');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -527,8 +527,9 @@ public void GetCountTestWithWhere()
public void GetCountTestWithWhereAndClassProperty()
{
var person = new Person() { Id = 1 };
var person2 = new Person() { Id = 1 };

var rowCount = SqlRepository.GetCount<Person>(p => p.Id == person.Id);
var rowCount = SqlRepository.GetCount<Person>(p => p.Id == person.Id && p.Id == person2.Id);

Assert.Equal(1, rowCount);

Expand Down

0 comments on commit 56ea8d9

Please sign in to comment.