Website Summary Files Commits Branches @commit @diff @stats
path: root / src / DevHive.Tests / DevHive.Data.Tests / UserRepositoryTests.cs
diff options
context:
space:
mode:
Commita0d819bc3ad1f83c0bfa4294fc63679fb9d9f4d9 (patch)
Author
 Danail Dimitrov <danaildimitrov321@gmail.com>
2021-02-03 21:05:29 +0200
Committer
 Danail Dimitrov <danaildimitrov321@gmail.com>
2021-02-03 21:05:29 +0200
Filesfd748efad1519b66556fe2d44fa8e3a3f7c8e917 /src/DevHive.Tests/DevHive.Data.Tests/UserRepositoryTests.cs
DevHive-a0d819bc3ad1f83c0bfa4294fc63679fb9d9f4d9.tar
DevHive-a0d819bc3ad1f83c0bfa4294fc63679fb9d9f4d9.tar.gz
DevHive-a0d819bc3ad1f83c0bfa4294fc63679fb9d9f4d9.zip
Parentf05e4813f60bd5e501a2d5a596ada2cea715df27 (diff)
za viko
1 files changed, 16 insertions, 16 deletions
-rw-r--r--src/DevHive.Tests/DevHive.Data.Tests/UserRepositoryTests.cs32
diff --git a/src/DevHive.Tests/DevHive.Data.Tests/UserRepositoryTests.cs b/src/DevHive.Tests/DevHive.Data.Tests/UserRepositoryTests.cs
index 657369d..aaa189a 100644
--- a/src/DevHive.Tests/DevHive.Data.Tests/UserRepositoryTests.cs
+++ b/src/DevHive.Tests/DevHive.Data.Tests/UserRepositoryTests.cs
@@ -198,25 +198,25 @@ namespace DevHive.Data.Tests
#endregion
#region DoesUserHaveThisFriendAsync
- [Test]
- public async Task DoesUserHaveThisFriendAsync_ReturnsTrue_WhenUserHasTheGivenFriend()
- {
- User dummyUser = this.CreateDummyUser();
- User anotherDummyUser = this.CreateAnotherDummyUser();
- HashSet<User> friends = new HashSet<User>
- {
- anotherDummyUser
- };
- dummyUser.Friends = friends;
+ //[Test]
+ //public async Task DoesUserHaveThisFriendAsync_ReturnsTrue_WhenUserHasTheGivenFriend()
+ //{
+ // User dummyUser = this.CreateDummyUser();
+ // User anotherDummyUser = this.CreateAnotherDummyUser();
+ // HashSet<User> friends = new HashSet<User>
+ // {
+ // anotherDummyUser
+ // };
+ // dummyUser.Friends = friends;
- this._context.Users.Add(dummyUser);
- this._context.Users.Add(anotherDummyUser);
- await this._context.SaveChangesAsync();
+ // this._context.Users.Add(dummyUser);
+ // this._context.Users.Add(anotherDummyUser);
+ // await this._context.SaveChangesAsync();
- bool result = await this._userRepository.DoesUserHaveThisFriendAsync(dummyUser.Id, anotherDummyUser.Id);
+ // bool result = await this._userRepository.DoesUserHaveThisFriendAsync(dummyUser.Id, anotherDummyUser.Id);
- Assert.IsTrue(result, "DoesUserHaveThisFriendAsync does not return true when user has the given friend");
- }
+ // Assert.IsTrue(result, "DoesUserHaveThisFriendAsync does not return true when user has the given friend");
+ //}
[Test]
public async Task DoesUserHaveThisFriendAsync_ReturnsFalse_WhenUserDoesNotHaveTheGivenFriend()