@@ -8,22 +8,22 @@ namespace LinkDotNet.Blog.UnitTests.Infrastructure.Persistence.InMemory
8
8
{
9
9
public class ProfileRepositoryTests
10
10
{
11
- private readonly ProfileRepository ProfileRepository ;
11
+ private readonly ProfileRepository profileRepository ;
12
12
13
13
public ProfileRepositoryTests ( )
14
14
{
15
- ProfileRepository = new ProfileRepository ( ) ;
15
+ profileRepository = new ProfileRepository ( ) ;
16
16
}
17
17
18
18
[ Fact ]
19
19
public async Task ShouldSaveAndRetrieveAllEntries ( )
20
20
{
21
21
var item1 = new ProfileInformationEntryBuilder ( ) . WithKey ( "key1" ) . WithValue ( "value1" ) . Build ( ) ;
22
22
var item2 = new ProfileInformationEntryBuilder ( ) . WithKey ( "key2" ) . WithValue ( "value2" ) . Build ( ) ;
23
- await ProfileRepository . AddAsync ( item1 ) ;
24
- await ProfileRepository . AddAsync ( item2 ) ;
23
+ await profileRepository . AddAsync ( item1 ) ;
24
+ await profileRepository . AddAsync ( item2 ) ;
25
25
26
- var items = await ProfileRepository . GetAllAsync ( ) ;
26
+ var items = await profileRepository . GetAllAsync ( ) ;
27
27
28
28
items [ 0 ] . Key . Should ( ) . Be ( "key1" ) ;
29
29
items [ 0 ] . Value . Should ( ) . Be ( "value1" ) ;
@@ -36,12 +36,12 @@ public async Task ShouldDelete()
36
36
{
37
37
var item1 = new ProfileInformationEntryBuilder ( ) . WithKey ( "key1" ) . WithValue ( "value1" ) . Build ( ) ;
38
38
var item2 = new ProfileInformationEntryBuilder ( ) . WithKey ( "key2" ) . WithValue ( "value2" ) . Build ( ) ;
39
- await ProfileRepository . AddAsync ( item1 ) ;
40
- await ProfileRepository . AddAsync ( item2 ) ;
39
+ await profileRepository . AddAsync ( item1 ) ;
40
+ await profileRepository . AddAsync ( item2 ) ;
41
41
42
- await ProfileRepository . DeleteAsync ( item1 . Id ) ;
42
+ await profileRepository . DeleteAsync ( item1 . Id ) ;
43
43
44
- var items = await ProfileRepository . GetAllAsync ( ) ;
44
+ var items = await profileRepository . GetAllAsync ( ) ;
45
45
items . Should ( ) . HaveCount ( 1 ) ;
46
46
items [ 0 ] . Id . Should ( ) . Be ( item2 . Id ) ;
47
47
}
0 commit comments