From a0d819bc3ad1f83c0bfa4294fc63679fb9d9f4d9 Mon Sep 17 00:00:00 2001 From: Danail Dimitrov Date: Wed, 3 Feb 2021 21:05:29 +0200 Subject: za viko --- .../DevHive.Data.Tests/UserRepositoryTests.cs | 38 +++++++++++----------- 1 file changed, 19 insertions(+), 19 deletions(-) (limited to 'src/DevHive.Tests/DevHive.Data.Tests/UserRepositoryTests.cs') 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 friends = new HashSet - { - 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 friends = new HashSet + // { + // 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() -- cgit v1.2.3