aboutsummaryrefslogtreecommitdiff
path: root/src/DevHive.Tests/DevHive.Data.Tests/UserRepositoryTests.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/DevHive.Tests/DevHive.Data.Tests/UserRepositoryTests.cs')
-rw-r--r--src/DevHive.Tests/DevHive.Data.Tests/UserRepositoryTests.cs38
1 files changed, 19 insertions, 19 deletions
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;
-
- this._context.Users.Add(dummyUser);
- this._context.Users.Add(anotherDummyUser);
- await this._context.SaveChangesAsync();
-
- bool result = await this._userRepository.DoesUserHaveThisFriendAsync(dummyUser.Id, anotherDummyUser.Id);
-
- Assert.IsTrue(result, "DoesUserHaveThisFriendAsync does not return true when user has the given friend");
- }
+ //[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();
+
+ // bool result = await this._userRepository.DoesUserHaveThisFriendAsync(dummyUser.Id, anotherDummyUser.Id);
+
+ // Assert.IsTrue(result, "DoesUserHaveThisFriendAsync does not return true when user has the given friend");
+ //}
[Test]
public async Task DoesUserHaveThisFriendAsync_ReturnsFalse_WhenUserDoesNotHaveTheGivenFriend()