aboutsummaryrefslogtreecommitdiff
path: root/src/Web/DevHive.Web.Tests/FeedController.Tests.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/Web/DevHive.Web.Tests/FeedController.Tests.cs')
-rw-r--r--src/Web/DevHive.Web.Tests/FeedController.Tests.cs26
1 files changed, 13 insertions, 13 deletions
diff --git a/src/Web/DevHive.Web.Tests/FeedController.Tests.cs b/src/Web/DevHive.Web.Tests/FeedController.Tests.cs
index 01f67e5..646ad93 100644
--- a/src/Web/DevHive.Web.Tests/FeedController.Tests.cs
+++ b/src/Web/DevHive.Web.Tests/FeedController.Tests.cs
@@ -25,9 +25,9 @@ namespace DevHive.Web.Tests
[SetUp]
public void SetUp()
{
- this.FeedServiceMock = new Mock<IFeedService>();
- this.MapperMock = new Mock<IMapper>();
- this.FeedController = new FeedController(this.FeedServiceMock.Object, this.MapperMock.Object);
+ this.FeedServiceMock = new();
+ this.MapperMock = new();
+ this.FeedController = new(this.FeedServiceMock.Object, this.MapperMock.Object);
}
#endregion
@@ -35,12 +35,12 @@ namespace DevHive.Web.Tests
[Test]
public async Task GetPosts_ReturnsOkObjectResultWithCorrectReadPageWebModel_WhenPostsExist()
{
- GetPageWebModel getPageWebModel = new GetPageWebModel { };
- GetPageServiceModel getPageServiceModel = new GetPageServiceModel { };
- ReadPageServiceModel readPageServiceModel = new ReadPageServiceModel { };
- ReadPageWebModel readPageWebModel = new ReadPageWebModel
+ GetPageWebModel getPageWebModel = new();
+ GetPageServiceModel getPageServiceModel = new();
+ ReadPageServiceModel readPageServiceModel = new();
+ ReadPageWebModel readPageWebModel = new()
{
- Posts = new List<ReadPostWebModel>
+ Posts = new()
{
new ReadPostWebModel(),
new ReadPostWebModel(),
@@ -67,12 +67,12 @@ namespace DevHive.Web.Tests
[Test]
public async Task GetUserPosts_GetsPostsOfUser_WhenTheyExist()
{
- GetPageWebModel getPageWebModel = new GetPageWebModel { };
- GetPageServiceModel getPageServiceModel = new GetPageServiceModel { };
- ReadPageServiceModel readPageServiceModel = new ReadPageServiceModel { };
- ReadPageWebModel readPageWebModel = new ReadPageWebModel
+ GetPageWebModel getPageWebModel = new();
+ GetPageServiceModel getPageServiceModel = new();
+ ReadPageServiceModel readPageServiceModel = new();
+ ReadPageWebModel readPageWebModel = new()
{
- Posts = new List<ReadPostWebModel>
+ Posts = new()
{
new ReadPostWebModel(),
new ReadPostWebModel(),