aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSyndamia <kamen.d.mladenov@protonmail.com>2021-03-13 16:16:29 +0200
committerSyndamia <kamen.d.mladenov@protonmail.com>2021-03-13 16:16:29 +0200
commit25228c4a018e7d4de4efd3d11d19c99086fd46be (patch)
treea8f34955820ddb681065b6d8d5a7988d75652656 /src
parenta64e1a9433a0d1ae340a38752f8b87cd7df8ad78 (diff)
downloadDevHive-25228c4a018e7d4de4efd3d11d19c99086fd46be.tar
DevHive-25228c4a018e7d4de4efd3d11d19c99086fd46be.tar.gz
DevHive-25228c4a018e7d4de4efd3d11d19c99086fd46be.zip
Removed unused local variables in service tests
Diffstat (limited to 'src')
-rw-r--r--src/Services/DevHive.Services.Tests/PostService.Tests.cs4
-rw-r--r--src/Services/DevHive.Services.Tests/RoleService.Tests.cs4
-rw-r--r--src/Services/DevHive.Services.Tests/TechnologyServices.Tests.cs4
-rw-r--r--src/Services/DevHive.Services.Tests/UserService.Tests.cs1
4 files changed, 0 insertions, 13 deletions
diff --git a/src/Services/DevHive.Services.Tests/PostService.Tests.cs b/src/Services/DevHive.Services.Tests/PostService.Tests.cs
index b7f9a9d..799824b 100644
--- a/src/Services/DevHive.Services.Tests/PostService.Tests.cs
+++ b/src/Services/DevHive.Services.Tests/PostService.Tests.cs
@@ -92,10 +92,6 @@ namespace DevHive.Services.Tests
CreatePostServiceModel createPostServiceModel = new CreatePostServiceModel
{
};
- Post post = new Post
- {
- Message = MESSAGE,
- };
Exception ex = Assert.ThrowsAsync<ArgumentException>(() => this.PostService.CreatePost(createPostServiceModel), "CreatePost does not throw excpeion when the user does not exist");
diff --git a/src/Services/DevHive.Services.Tests/RoleService.Tests.cs b/src/Services/DevHive.Services.Tests/RoleService.Tests.cs
index f12ddc5..2577679 100644
--- a/src/Services/DevHive.Services.Tests/RoleService.Tests.cs
+++ b/src/Services/DevHive.Services.Tests/RoleService.Tests.cs
@@ -86,10 +86,6 @@ namespace DevHive.Services.Tests
{
Name = roleName
};
- Role role = new Role
- {
- Name = roleName
- };
this.RoleRepositoryMock.Setup(p => p.DoesNameExist(It.IsAny<string>())).Returns(Task.FromResult(true));
diff --git a/src/Services/DevHive.Services.Tests/TechnologyServices.Tests.cs b/src/Services/DevHive.Services.Tests/TechnologyServices.Tests.cs
index b53fc03..5f56f19 100644
--- a/src/Services/DevHive.Services.Tests/TechnologyServices.Tests.cs
+++ b/src/Services/DevHive.Services.Tests/TechnologyServices.Tests.cs
@@ -87,10 +87,6 @@ namespace DevHive.Services.Tests
{
Name = technologyName
};
- Technology technology = new()
- {
- Name = technologyName
- };
this.TechnologyRepositoryMock.Setup(p => p.DoesTechnologyNameExistAsync(It.IsAny<string>())).Returns(Task.FromResult(true));
diff --git a/src/Services/DevHive.Services.Tests/UserService.Tests.cs b/src/Services/DevHive.Services.Tests/UserService.Tests.cs
index 946514b..58ee223 100644
--- a/src/Services/DevHive.Services.Tests/UserService.Tests.cs
+++ b/src/Services/DevHive.Services.Tests/UserService.Tests.cs
@@ -139,7 +139,6 @@ namespace DevHive.Services.Tests
UserName = "g_trapov"
};
Role role = new() { Name = Role.DefaultRole };
- HashSet<Role> roles = new() { role };
this._userRepositoryMock.Setup(p =>
p.DoesUsernameExistAsync(It.IsAny<string>()))