Selaa lähdekoodia

implemented base repository for mongo services

feature/room-repository-with-interface
meris.ahmatovic 3 vuotta sitten
vanhempi
commit
908ee21d80
100 muutettua tiedostoa jossa 264 lisäystä ja 6 poistoa
  1. 11
    0
      Backend/Diligent.WebAPI.Business/Interfaces/IBaseRepository.cs
  2. 14
    0
      Backend/Diligent.WebAPI.Business/Interfaces/IRequestRepository.cs
  3. 42
    0
      Backend/Diligent.WebAPI.Business/Services/BaseRepository.cs
  4. 28
    0
      Backend/Diligent.WebAPI.Business/Services/RequestRepository.cs
  5. 14
    0
      Backend/Diligent.WebAPI.Data/DbContext/IMongoDbContext.cs
  6. 25
    0
      Backend/Diligent.WebAPI.Data/DbContext/MongoDBContext.cs
  7. 1
    0
      Backend/Diligent.WebAPI.Host/Diligent.WebAPI.Host.csproj
  8. 5
    1
      Backend/Diligent.WebAPI.Host/Extensions/WebAppBuilder.cs
  9. 5
    5
      Backend/Diligent.WebAPI.Host/Mediator/Request/Handlers/GetAllRequestHandler.cs
  10. 6
    0
      Backend/Diligent.WebAPI.Host/Program.cs
  11. 6
    0
      Backend/Diligent.WebAPI.sln
  12. 64
    0
      Backend/Tests/CustomerServiceTest.cs
  13. 26
    0
      Backend/Tests/Tests.csproj
  14. 16
    0
      Backend/Tests/UnitTest1.cs
  15. 1
    0
      Backend/Tests/Usings.cs
  16. BIN
      Backend/Tests/bin/Debug/net6.0/AspNetCore.Identity.MongoDbCore.dll
  17. BIN
      Backend/Tests/bin/Debug/net6.0/AutoMapper.Extensions.Microsoft.DependencyInjection.dll
  18. BIN
      Backend/Tests/bin/Debug/net6.0/AutoMapper.dll
  19. BIN
      Backend/Tests/bin/Debug/net6.0/Castle.Core.dll
  20. BIN
      Backend/Tests/bin/Debug/net6.0/CoverletSourceRootsMapping
  21. BIN
      Backend/Tests/bin/Debug/net6.0/Diligent.WebAPI.Business.dll
  22. BIN
      Backend/Tests/bin/Debug/net6.0/Diligent.WebAPI.Business.pdb
  23. BIN
      Backend/Tests/bin/Debug/net6.0/Diligent.WebAPI.Data.dll
  24. BIN
      Backend/Tests/bin/Debug/net6.0/Diligent.WebAPI.Data.pdb
  25. BIN
      Backend/Tests/bin/Debug/net6.0/DnsClient.dll
  26. BIN
      Backend/Tests/bin/Debug/net6.0/FluentAssertions.dll
  27. BIN
      Backend/Tests/bin/Debug/net6.0/Microsoft.AspNetCore.Authentication.Abstractions.dll
  28. BIN
      Backend/Tests/bin/Debug/net6.0/Microsoft.AspNetCore.Authentication.Core.dll
  29. BIN
      Backend/Tests/bin/Debug/net6.0/Microsoft.AspNetCore.Connections.Abstractions.dll
  30. BIN
      Backend/Tests/bin/Debug/net6.0/Microsoft.AspNetCore.Cryptography.Internal.dll
  31. BIN
      Backend/Tests/bin/Debug/net6.0/Microsoft.AspNetCore.Cryptography.KeyDerivation.dll
  32. BIN
      Backend/Tests/bin/Debug/net6.0/Microsoft.AspNetCore.Diagnostics.Abstractions.dll
  33. BIN
      Backend/Tests/bin/Debug/net6.0/Microsoft.AspNetCore.Diagnostics.dll
  34. BIN
      Backend/Tests/bin/Debug/net6.0/Microsoft.AspNetCore.HostFiltering.dll
  35. BIN
      Backend/Tests/bin/Debug/net6.0/Microsoft.AspNetCore.Hosting.Abstractions.dll
  36. BIN
      Backend/Tests/bin/Debug/net6.0/Microsoft.AspNetCore.Hosting.Server.Abstractions.dll
  37. BIN
      Backend/Tests/bin/Debug/net6.0/Microsoft.AspNetCore.Hosting.dll
  38. BIN
      Backend/Tests/bin/Debug/net6.0/Microsoft.AspNetCore.Http.Abstractions.dll
  39. BIN
      Backend/Tests/bin/Debug/net6.0/Microsoft.AspNetCore.Http.Extensions.dll
  40. BIN
      Backend/Tests/bin/Debug/net6.0/Microsoft.AspNetCore.Http.Features.dll
  41. BIN
      Backend/Tests/bin/Debug/net6.0/Microsoft.AspNetCore.Http.dll
  42. BIN
      Backend/Tests/bin/Debug/net6.0/Microsoft.AspNetCore.HttpOverrides.dll
  43. BIN
      Backend/Tests/bin/Debug/net6.0/Microsoft.AspNetCore.Routing.Abstractions.dll
  44. BIN
      Backend/Tests/bin/Debug/net6.0/Microsoft.AspNetCore.Routing.dll
  45. BIN
      Backend/Tests/bin/Debug/net6.0/Microsoft.AspNetCore.Server.IIS.dll
  46. BIN
      Backend/Tests/bin/Debug/net6.0/Microsoft.AspNetCore.Server.IISIntegration.dll
  47. BIN
      Backend/Tests/bin/Debug/net6.0/Microsoft.AspNetCore.Server.Kestrel.Core.dll
  48. BIN
      Backend/Tests/bin/Debug/net6.0/Microsoft.AspNetCore.Server.Kestrel.Https.dll
  49. BIN
      Backend/Tests/bin/Debug/net6.0/Microsoft.AspNetCore.Server.Kestrel.Transport.Abstractions.dll
  50. BIN
      Backend/Tests/bin/Debug/net6.0/Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets.dll
  51. BIN
      Backend/Tests/bin/Debug/net6.0/Microsoft.AspNetCore.Server.Kestrel.dll
  52. BIN
      Backend/Tests/bin/Debug/net6.0/Microsoft.AspNetCore.WebUtilities.dll
  53. BIN
      Backend/Tests/bin/Debug/net6.0/Microsoft.AspNetCore.dll
  54. BIN
      Backend/Tests/bin/Debug/net6.0/Microsoft.Data.SqlClient.dll
  55. BIN
      Backend/Tests/bin/Debug/net6.0/Microsoft.EntityFrameworkCore.Abstractions.dll
  56. BIN
      Backend/Tests/bin/Debug/net6.0/Microsoft.EntityFrameworkCore.Relational.dll
  57. BIN
      Backend/Tests/bin/Debug/net6.0/Microsoft.EntityFrameworkCore.SqlServer.dll
  58. BIN
      Backend/Tests/bin/Debug/net6.0/Microsoft.EntityFrameworkCore.dll
  59. BIN
      Backend/Tests/bin/Debug/net6.0/Microsoft.Extensions.Caching.Abstractions.dll
  60. BIN
      Backend/Tests/bin/Debug/net6.0/Microsoft.Extensions.Caching.Memory.dll
  61. BIN
      Backend/Tests/bin/Debug/net6.0/Microsoft.Extensions.Configuration.Abstractions.dll
  62. BIN
      Backend/Tests/bin/Debug/net6.0/Microsoft.Extensions.Configuration.Binder.dll
  63. BIN
      Backend/Tests/bin/Debug/net6.0/Microsoft.Extensions.Configuration.CommandLine.dll
  64. BIN
      Backend/Tests/bin/Debug/net6.0/Microsoft.Extensions.Configuration.EnvironmentVariables.dll
  65. BIN
      Backend/Tests/bin/Debug/net6.0/Microsoft.Extensions.Configuration.FileExtensions.dll
  66. BIN
      Backend/Tests/bin/Debug/net6.0/Microsoft.Extensions.Configuration.Json.dll
  67. BIN
      Backend/Tests/bin/Debug/net6.0/Microsoft.Extensions.Configuration.UserSecrets.dll
  68. BIN
      Backend/Tests/bin/Debug/net6.0/Microsoft.Extensions.Configuration.dll
  69. BIN
      Backend/Tests/bin/Debug/net6.0/Microsoft.Extensions.DependencyInjection.Abstractions.dll
  70. BIN
      Backend/Tests/bin/Debug/net6.0/Microsoft.Extensions.DependencyInjection.dll
  71. BIN
      Backend/Tests/bin/Debug/net6.0/Microsoft.Extensions.FileProviders.Abstractions.dll
  72. BIN
      Backend/Tests/bin/Debug/net6.0/Microsoft.Extensions.FileProviders.Physical.dll
  73. BIN
      Backend/Tests/bin/Debug/net6.0/Microsoft.Extensions.FileSystemGlobbing.dll
  74. BIN
      Backend/Tests/bin/Debug/net6.0/Microsoft.Extensions.Hosting.Abstractions.dll
  75. BIN
      Backend/Tests/bin/Debug/net6.0/Microsoft.Extensions.Identity.Core.dll
  76. BIN
      Backend/Tests/bin/Debug/net6.0/Microsoft.Extensions.Identity.Stores.dll
  77. BIN
      Backend/Tests/bin/Debug/net6.0/Microsoft.Extensions.Logging.Abstractions.dll
  78. BIN
      Backend/Tests/bin/Debug/net6.0/Microsoft.Extensions.Logging.Configuration.dll
  79. BIN
      Backend/Tests/bin/Debug/net6.0/Microsoft.Extensions.Logging.Console.dll
  80. BIN
      Backend/Tests/bin/Debug/net6.0/Microsoft.Extensions.Logging.Debug.dll
  81. BIN
      Backend/Tests/bin/Debug/net6.0/Microsoft.Extensions.Logging.EventSource.dll
  82. BIN
      Backend/Tests/bin/Debug/net6.0/Microsoft.Extensions.Logging.dll
  83. BIN
      Backend/Tests/bin/Debug/net6.0/Microsoft.Extensions.ObjectPool.dll
  84. BIN
      Backend/Tests/bin/Debug/net6.0/Microsoft.Extensions.Options.ConfigurationExtensions.dll
  85. BIN
      Backend/Tests/bin/Debug/net6.0/Microsoft.Extensions.Options.dll
  86. BIN
      Backend/Tests/bin/Debug/net6.0/Microsoft.Extensions.Primitives.dll
  87. BIN
      Backend/Tests/bin/Debug/net6.0/Microsoft.Identity.Client.dll
  88. BIN
      Backend/Tests/bin/Debug/net6.0/Microsoft.IdentityModel.JsonWebTokens.dll
  89. BIN
      Backend/Tests/bin/Debug/net6.0/Microsoft.IdentityModel.Logging.dll
  90. BIN
      Backend/Tests/bin/Debug/net6.0/Microsoft.IdentityModel.Protocols.OpenIdConnect.dll
  91. BIN
      Backend/Tests/bin/Debug/net6.0/Microsoft.IdentityModel.Protocols.dll
  92. BIN
      Backend/Tests/bin/Debug/net6.0/Microsoft.IdentityModel.Tokens.dll
  93. BIN
      Backend/Tests/bin/Debug/net6.0/Microsoft.Net.Http.Headers.dll
  94. BIN
      Backend/Tests/bin/Debug/net6.0/Microsoft.TestPlatform.CommunicationUtilities.dll
  95. BIN
      Backend/Tests/bin/Debug/net6.0/Microsoft.TestPlatform.CoreUtilities.dll
  96. BIN
      Backend/Tests/bin/Debug/net6.0/Microsoft.TestPlatform.CrossPlatEngine.dll
  97. BIN
      Backend/Tests/bin/Debug/net6.0/Microsoft.TestPlatform.PlatformAbstractions.dll
  98. BIN
      Backend/Tests/bin/Debug/net6.0/Microsoft.TestPlatform.Utilities.dll
  99. BIN
      Backend/Tests/bin/Debug/net6.0/Microsoft.VisualStudio.CodeCoverage.Shim.dll
  100. 0
    0
      Backend/Tests/bin/Debug/net6.0/Microsoft.VisualStudio.TestPlatform.Common.dll

+ 11
- 0
Backend/Diligent.WebAPI.Business/Interfaces/IBaseRepository.cs Näytä tiedosto

@@ -0,0 +1,11 @@
namespace Diligent.WebAPI.Business.Interfaces
{
public interface IBaseRepository<TEntity> where TEntity : class
{
Task<List<TEntity>> GetAsync();
Task<TEntity> GetByIdAsync(string id);
Task CreateAsync(TEntity entity);
Task UpdateAsync(string id, TEntity updateEntity);
Task RemoveAsync(string id);
}
}

+ 14
- 0
Backend/Diligent.WebAPI.Business/Interfaces/IRequestRepository.cs Näytä tiedosto

@@ -0,0 +1,14 @@
using Diligent.WebAPI.Data.Entities;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Diligent.WebAPI.Business.Interfaces
{
public interface IRequestRepository : IBaseRepository<Request>
{
Task<List<Request>> GetAll();
}
}

+ 42
- 0
Backend/Diligent.WebAPI.Business/Services/BaseRepository.cs Näytä tiedosto

@@ -0,0 +1,42 @@
using Diligent.WebAPI.Business.Interfaces;
using Diligent.WebAPI.Data;
using MongoDB.Driver;

namespace Diligent.WebAPI.Business.Services
{
public class BaseRepository<TEntity> : IBaseRepository<TEntity> where TEntity : class
{
protected readonly IMongoDBContext _mongoContext;
protected IMongoCollection<TEntity> _dbCollection;
public BaseRepository(IMongoDBContext context)
{
_mongoContext = context;
_dbCollection = _mongoContext.GetCollection<TEntity>(typeof(TEntity).Name);
}

public Task CreateAsync(TEntity entity)
{
throw new NotImplementedException();
}

public async Task<List<TEntity>> GetAsync()
{
var all = await _dbCollection.FindAsync(Builders<TEntity>.Filter.Empty);
return await all.ToListAsync();
}
public Task<TEntity> GetByIdAsync(string id)
{
throw new NotImplementedException();
}

public Task RemoveAsync(string id)
{
throw new NotImplementedException();
}

public Task UpdateAsync(string id, TEntity updateEntity)
{
throw new NotImplementedException();
}
}
}

+ 28
- 0
Backend/Diligent.WebAPI.Business/Services/RequestRepository.cs Näytä tiedosto

@@ -0,0 +1,28 @@
using Diligent.WebAPI.Business.Interfaces;
using Diligent.WebAPI.Data;
using Diligent.WebAPI.Data.Entities;
using MongoDB.Driver;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Diligent.WebAPI.Business.Services
{
public class RequestRepository : BaseRepository<Request>, IRequestRepository
{
protected new IMongoCollection<Request> _dbCollection;

public RequestRepository(IMongoDBContext context) : base(context)
{
_dbCollection = _mongoContext.GetCollection<Request>(typeof(Request).Name);
}

public async Task<List<Request>> GetAll()
{
var all = await _dbCollection.FindAsync(Builders<Request>.Filter.Empty);
return await all.ToListAsync();
}
}
}

+ 14
- 0
Backend/Diligent.WebAPI.Data/DbContext/IMongoDbContext.cs Näytä tiedosto

@@ -0,0 +1,14 @@
using MongoDB.Driver;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Diligent.WebAPI.Data
{
public interface IMongoDBContext
{
IMongoCollection<Request> GetCollection<Request>(string id);
}
}

+ 25
- 0
Backend/Diligent.WebAPI.Data/DbContext/MongoDBContext.cs Näytä tiedosto

@@ -0,0 +1,25 @@
using MongoDB.Driver;

namespace Diligent.WebAPI.Data
{
public class MongoDBContext : IMongoDBContext
{
private readonly IConfiguration _configuration;

private IMongoDatabase _db { get; set; }
private MongoClient _mongoClient { get; set; }
public IClientSessionHandle Session { get; set; }
public MongoDBContext(IConfiguration configuration)
{
_configuration = configuration;
var mongoDbSettings = _configuration.GetSection("WebApiDB");
_mongoClient = new MongoClient(mongoDbSettings["ConnectionString"]);
_db = _mongoClient.GetDatabase(mongoDbSettings["DatabaseName"]);
}

public IMongoCollection<Request> GetCollection<Request>(string id)
{
return _db.GetCollection<Request>(id);
}
}
}

+ 1
- 0
Backend/Diligent.WebAPI.Host/Diligent.WebAPI.Host.csproj Näytä tiedosto

@@ -27,6 +27,7 @@
<PackageReference Include="Serilog.Sinks.Console" Version="4.0.1" />
<PackageReference Include="Serilog.Sinks.File" Version="5.0.0" />
<PackageReference Include="Serilog.Sinks.Seq" Version="5.1.1" />
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.4.0" />
</ItemGroup>

<ItemGroup>

+ 5
- 1
Backend/Diligent.WebAPI.Host/Extensions/WebAppBuilder.cs Näytä tiedosto

@@ -24,9 +24,13 @@ public static class WebAppBuilder
builder.Configuration.GetSection("WebApiDB"));

builder.Services.AddAutoMapper(typeof(RequestMappingProfile));
builder.Services.AddScoped<IAuthenticationService, AuthenticationService>();

builder.Services.AddScoped(typeof(IBaseRepository<>), typeof(BaseRepository<>));
builder.Services.AddScoped<IRequestRepository, RequestRepository>();
builder.Services.AddScoped<IMongoDBContext, MongoDBContext>();
builder.Services.AddScoped<IAuthenticationService, AuthenticationService>();
builder.Services.AddScoped<ICustomerService, CustomerService>();

builder.Services.AddSingleton<RoomService>();
builder.Services.AddSingleton<RequestService>();
builder.Services.AddSingleton<AuthorizationService>();

+ 5
- 5
Backend/Diligent.WebAPI.Host/Mediator/Request/Handlers/GetAllRequestHandler.cs Näytä tiedosto

@@ -1,4 +1,4 @@
using Diligent.WebAPI.Business.Services;
using Diligent.WebAPI.Business.Interfaces;
using Diligent.WebAPI.Host.Mediator.Request.Queries;
using MediatR;

@@ -6,13 +6,13 @@ namespace Diligent.WebAPI.Host.Mediator.Request.Handlers
{
public class GetAllRequestHandler : IRequestHandler<GetAllRequestsQuery, List<Data.Entities.Request>>
{
private readonly RequestService _requestService;
private readonly IRequestRepository _requestRepository;

public GetAllRequestHandler(RequestService requestService)
public GetAllRequestHandler(IRequestRepository requestRepository)
{
_requestService = requestService;
_requestRepository = requestRepository;
}
public async Task<List<Data.Entities.Request>> Handle(GetAllRequestsQuery request, CancellationToken cancellationToken) =>
await _requestService.GetRequestsAsync();
await _requestRepository.GetAll();
}
}

+ 6
- 0
Backend/Diligent.WebAPI.Host/Program.cs Näytä tiedosto

@@ -6,6 +6,7 @@ var builder = WebApplication.CreateBuilder(args);

builder.ConfigureData(builder.Configuration);
var collection = builder.Services;
builder.Services.AddSwaggerGen();
Diligent.WebAPI.Host.Extensions.ApiConfiguration.ConfigureServices(collection);
builder.ConfigureValidationMiddleware();
var app = builder.Build();
@@ -16,6 +17,11 @@ app.MapControllers();
app.UseAuthentication();
app.UseAuthorization();
app.SetupData();
if (app.Environment.IsDevelopment())
{
app.UseSwagger();
app.UseSwaggerUI();
}

app.MapHub<ChatHub>("/chatHub");
app.MapHub<ConnectionHub>("/statusHub");

+ 6
- 0
Backend/Diligent.WebAPI.sln Näytä tiedosto

@@ -14,6 +14,8 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
.editorconfig = .editorconfig
EndProjectSection
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Tests", "Tests\Tests.csproj", "{52163977-0F9F-4318-9C98-401D4F31AA65}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
@@ -32,6 +34,10 @@ Global
{69367FC8-603A-4E4B-BAD7-99D24308D5F2}.Debug|Any CPU.Build.0 = Debug|Any CPU
{69367FC8-603A-4E4B-BAD7-99D24308D5F2}.Release|Any CPU.ActiveCfg = Release|Any CPU
{69367FC8-603A-4E4B-BAD7-99D24308D5F2}.Release|Any CPU.Build.0 = Release|Any CPU
{52163977-0F9F-4318-9C98-401D4F31AA65}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{52163977-0F9F-4318-9C98-401D4F31AA65}.Debug|Any CPU.Build.0 = Debug|Any CPU
{52163977-0F9F-4318-9C98-401D4F31AA65}.Release|Any CPU.ActiveCfg = Release|Any CPU
{52163977-0F9F-4318-9C98-401D4F31AA65}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE

+ 64
- 0
Backend/Tests/CustomerServiceTest.cs Näytä tiedosto

@@ -0,0 +1,64 @@
using Diligent.WebAPI.Business.Services;
using Diligent.WebAPI.Data.Entities;
using FluentAssertions;
using Microsoft.AspNetCore.Identity;
using Moq;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Tests
{
[TestFixture]
public class CustomerServiceTest
{
private CustomerService service;

[Test]
public async Task DeleteNotification_WhenUserIsNull_ReturnsFalse()
{
// Arrange
var userManagerMock = new Mock<UserManager<Customer>>(Mock.Of<IUserStore<Customer>>(), null, null, null, null, null, null, null, null);
userManagerMock.Setup(x => x.FindByIdAsync(It.IsAny<string>())).ReturnsAsync((Customer)null);

service = new CustomerService(userManagerMock.Object);

// Act
var result = await service.DeleteNotification("", "");

// Assert
//Assert.IsFalse(result);
result.Should().BeFalse();
}

[Test]
public async Task DeleteNotification_UserIsNotNullAndNotificationIsNull_ReturnsFalse()
{
// Arrange
var userManagerMock = new Mock<UserManager<Customer>>(Mock.Of<IUserStore<Customer>>(), null, null, null, null, null, null, null, null);
var customer = new Customer
{
FirstName = "User",
LastName = "Someone",
Notifications = new List<Notification>
{
new Notification
{
RoomId = "Room1", Count = 1
}
}
};
userManagerMock.Setup(x => x.FindByIdAsync(It.IsAny<string>())).ReturnsAsync(customer);

service = new CustomerService(userManagerMock.Object);

// Act
var result = await service.DeleteNotification("arg", "Room1");

// Assert
result.Should().BeTrue();
}
}
}

+ 26
- 0
Backend/Tests/Tests.csproj Näytä tiedosto

@@ -0,0 +1,26 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>

<IsPackable>false</IsPackable>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="FluentAssertions" Version="6.7.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.1.0" />
<PackageReference Include="Moq" Version="4.18.2" />
<PackageReference Include="NUnit" Version="3.13.3" />
<PackageReference Include="NUnit3TestAdapter" Version="4.2.1" />
<PackageReference Include="NUnit.Analyzers" Version="3.3.0" />
<PackageReference Include="coverlet.collector" Version="3.1.2" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\Diligent.WebAPI.Business\Diligent.WebAPI.Business.csproj" />
<ProjectReference Include="..\Diligent.WebAPI.Data\Diligent.WebAPI.Data.csproj" />
</ItemGroup>

</Project>

+ 16
- 0
Backend/Tests/UnitTest1.cs Näytä tiedosto

@@ -0,0 +1,16 @@
namespace Tests
{
public class Tests
{
[SetUp]
public void Setup()
{
}

[Test]
public void Test1()
{
Assert.Pass();
}
}
}

+ 1
- 0
Backend/Tests/Usings.cs Näytä tiedosto

@@ -0,0 +1 @@
global using NUnit.Framework;

BIN
Backend/Tests/bin/Debug/net6.0/AspNetCore.Identity.MongoDbCore.dll Näytä tiedosto


BIN
Backend/Tests/bin/Debug/net6.0/AutoMapper.Extensions.Microsoft.DependencyInjection.dll Näytä tiedosto


BIN
Backend/Tests/bin/Debug/net6.0/AutoMapper.dll Näytä tiedosto


BIN
Backend/Tests/bin/Debug/net6.0/Castle.Core.dll Näytä tiedosto


BIN
Backend/Tests/bin/Debug/net6.0/CoverletSourceRootsMapping Näytä tiedosto


BIN
Backend/Tests/bin/Debug/net6.0/Diligent.WebAPI.Business.dll Näytä tiedosto


BIN
Backend/Tests/bin/Debug/net6.0/Diligent.WebAPI.Business.pdb Näytä tiedosto


BIN
Backend/Tests/bin/Debug/net6.0/Diligent.WebAPI.Data.dll Näytä tiedosto


BIN
Backend/Tests/bin/Debug/net6.0/Diligent.WebAPI.Data.pdb Näytä tiedosto


BIN
Backend/Tests/bin/Debug/net6.0/DnsClient.dll Näytä tiedosto


BIN
Backend/Tests/bin/Debug/net6.0/FluentAssertions.dll Näytä tiedosto


BIN
Backend/Tests/bin/Debug/net6.0/Microsoft.AspNetCore.Authentication.Abstractions.dll Näytä tiedosto


BIN
Backend/Tests/bin/Debug/net6.0/Microsoft.AspNetCore.Authentication.Core.dll Näytä tiedosto


BIN
Backend/Tests/bin/Debug/net6.0/Microsoft.AspNetCore.Connections.Abstractions.dll Näytä tiedosto


BIN
Backend/Tests/bin/Debug/net6.0/Microsoft.AspNetCore.Cryptography.Internal.dll Näytä tiedosto


BIN
Backend/Tests/bin/Debug/net6.0/Microsoft.AspNetCore.Cryptography.KeyDerivation.dll Näytä tiedosto


BIN
Backend/Tests/bin/Debug/net6.0/Microsoft.AspNetCore.Diagnostics.Abstractions.dll Näytä tiedosto


BIN
Backend/Tests/bin/Debug/net6.0/Microsoft.AspNetCore.Diagnostics.dll Näytä tiedosto


BIN
Backend/Tests/bin/Debug/net6.0/Microsoft.AspNetCore.HostFiltering.dll Näytä tiedosto


BIN
Backend/Tests/bin/Debug/net6.0/Microsoft.AspNetCore.Hosting.Abstractions.dll Näytä tiedosto


BIN
Backend/Tests/bin/Debug/net6.0/Microsoft.AspNetCore.Hosting.Server.Abstractions.dll Näytä tiedosto


BIN
Backend/Tests/bin/Debug/net6.0/Microsoft.AspNetCore.Hosting.dll Näytä tiedosto


BIN
Backend/Tests/bin/Debug/net6.0/Microsoft.AspNetCore.Http.Abstractions.dll Näytä tiedosto


BIN
Backend/Tests/bin/Debug/net6.0/Microsoft.AspNetCore.Http.Extensions.dll Näytä tiedosto


BIN
Backend/Tests/bin/Debug/net6.0/Microsoft.AspNetCore.Http.Features.dll Näytä tiedosto


BIN
Backend/Tests/bin/Debug/net6.0/Microsoft.AspNetCore.Http.dll Näytä tiedosto


BIN
Backend/Tests/bin/Debug/net6.0/Microsoft.AspNetCore.HttpOverrides.dll Näytä tiedosto


BIN
Backend/Tests/bin/Debug/net6.0/Microsoft.AspNetCore.Routing.Abstractions.dll Näytä tiedosto


BIN
Backend/Tests/bin/Debug/net6.0/Microsoft.AspNetCore.Routing.dll Näytä tiedosto


BIN
Backend/Tests/bin/Debug/net6.0/Microsoft.AspNetCore.Server.IIS.dll Näytä tiedosto


BIN
Backend/Tests/bin/Debug/net6.0/Microsoft.AspNetCore.Server.IISIntegration.dll Näytä tiedosto


BIN
Backend/Tests/bin/Debug/net6.0/Microsoft.AspNetCore.Server.Kestrel.Core.dll Näytä tiedosto


BIN
Backend/Tests/bin/Debug/net6.0/Microsoft.AspNetCore.Server.Kestrel.Https.dll Näytä tiedosto


BIN
Backend/Tests/bin/Debug/net6.0/Microsoft.AspNetCore.Server.Kestrel.Transport.Abstractions.dll Näytä tiedosto


BIN
Backend/Tests/bin/Debug/net6.0/Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets.dll Näytä tiedosto


BIN
Backend/Tests/bin/Debug/net6.0/Microsoft.AspNetCore.Server.Kestrel.dll Näytä tiedosto


BIN
Backend/Tests/bin/Debug/net6.0/Microsoft.AspNetCore.WebUtilities.dll Näytä tiedosto


BIN
Backend/Tests/bin/Debug/net6.0/Microsoft.AspNetCore.dll Näytä tiedosto


BIN
Backend/Tests/bin/Debug/net6.0/Microsoft.Data.SqlClient.dll Näytä tiedosto


BIN
Backend/Tests/bin/Debug/net6.0/Microsoft.EntityFrameworkCore.Abstractions.dll Näytä tiedosto


BIN
Backend/Tests/bin/Debug/net6.0/Microsoft.EntityFrameworkCore.Relational.dll Näytä tiedosto


BIN
Backend/Tests/bin/Debug/net6.0/Microsoft.EntityFrameworkCore.SqlServer.dll Näytä tiedosto


BIN
Backend/Tests/bin/Debug/net6.0/Microsoft.EntityFrameworkCore.dll Näytä tiedosto


BIN
Backend/Tests/bin/Debug/net6.0/Microsoft.Extensions.Caching.Abstractions.dll Näytä tiedosto


BIN
Backend/Tests/bin/Debug/net6.0/Microsoft.Extensions.Caching.Memory.dll Näytä tiedosto


BIN
Backend/Tests/bin/Debug/net6.0/Microsoft.Extensions.Configuration.Abstractions.dll Näytä tiedosto


BIN
Backend/Tests/bin/Debug/net6.0/Microsoft.Extensions.Configuration.Binder.dll Näytä tiedosto


BIN
Backend/Tests/bin/Debug/net6.0/Microsoft.Extensions.Configuration.CommandLine.dll Näytä tiedosto


BIN
Backend/Tests/bin/Debug/net6.0/Microsoft.Extensions.Configuration.EnvironmentVariables.dll Näytä tiedosto


BIN
Backend/Tests/bin/Debug/net6.0/Microsoft.Extensions.Configuration.FileExtensions.dll Näytä tiedosto


BIN
Backend/Tests/bin/Debug/net6.0/Microsoft.Extensions.Configuration.Json.dll Näytä tiedosto


BIN
Backend/Tests/bin/Debug/net6.0/Microsoft.Extensions.Configuration.UserSecrets.dll Näytä tiedosto


BIN
Backend/Tests/bin/Debug/net6.0/Microsoft.Extensions.Configuration.dll Näytä tiedosto


BIN
Backend/Tests/bin/Debug/net6.0/Microsoft.Extensions.DependencyInjection.Abstractions.dll Näytä tiedosto


BIN
Backend/Tests/bin/Debug/net6.0/Microsoft.Extensions.DependencyInjection.dll Näytä tiedosto


BIN
Backend/Tests/bin/Debug/net6.0/Microsoft.Extensions.FileProviders.Abstractions.dll Näytä tiedosto


BIN
Backend/Tests/bin/Debug/net6.0/Microsoft.Extensions.FileProviders.Physical.dll Näytä tiedosto


BIN
Backend/Tests/bin/Debug/net6.0/Microsoft.Extensions.FileSystemGlobbing.dll Näytä tiedosto


BIN
Backend/Tests/bin/Debug/net6.0/Microsoft.Extensions.Hosting.Abstractions.dll Näytä tiedosto


BIN
Backend/Tests/bin/Debug/net6.0/Microsoft.Extensions.Identity.Core.dll Näytä tiedosto


BIN
Backend/Tests/bin/Debug/net6.0/Microsoft.Extensions.Identity.Stores.dll Näytä tiedosto


BIN
Backend/Tests/bin/Debug/net6.0/Microsoft.Extensions.Logging.Abstractions.dll Näytä tiedosto


BIN
Backend/Tests/bin/Debug/net6.0/Microsoft.Extensions.Logging.Configuration.dll Näytä tiedosto


BIN
Backend/Tests/bin/Debug/net6.0/Microsoft.Extensions.Logging.Console.dll Näytä tiedosto


BIN
Backend/Tests/bin/Debug/net6.0/Microsoft.Extensions.Logging.Debug.dll Näytä tiedosto


BIN
Backend/Tests/bin/Debug/net6.0/Microsoft.Extensions.Logging.EventSource.dll Näytä tiedosto


BIN
Backend/Tests/bin/Debug/net6.0/Microsoft.Extensions.Logging.dll Näytä tiedosto


BIN
Backend/Tests/bin/Debug/net6.0/Microsoft.Extensions.ObjectPool.dll Näytä tiedosto


BIN
Backend/Tests/bin/Debug/net6.0/Microsoft.Extensions.Options.ConfigurationExtensions.dll Näytä tiedosto


BIN
Backend/Tests/bin/Debug/net6.0/Microsoft.Extensions.Options.dll Näytä tiedosto


BIN
Backend/Tests/bin/Debug/net6.0/Microsoft.Extensions.Primitives.dll Näytä tiedosto


BIN
Backend/Tests/bin/Debug/net6.0/Microsoft.Identity.Client.dll Näytä tiedosto


BIN
Backend/Tests/bin/Debug/net6.0/Microsoft.IdentityModel.JsonWebTokens.dll Näytä tiedosto


BIN
Backend/Tests/bin/Debug/net6.0/Microsoft.IdentityModel.Logging.dll Näytä tiedosto


BIN
Backend/Tests/bin/Debug/net6.0/Microsoft.IdentityModel.Protocols.OpenIdConnect.dll Näytä tiedosto


BIN
Backend/Tests/bin/Debug/net6.0/Microsoft.IdentityModel.Protocols.dll Näytä tiedosto


BIN
Backend/Tests/bin/Debug/net6.0/Microsoft.IdentityModel.Tokens.dll Näytä tiedosto


BIN
Backend/Tests/bin/Debug/net6.0/Microsoft.Net.Http.Headers.dll Näytä tiedosto


BIN
Backend/Tests/bin/Debug/net6.0/Microsoft.TestPlatform.CommunicationUtilities.dll Näytä tiedosto


BIN
Backend/Tests/bin/Debug/net6.0/Microsoft.TestPlatform.CoreUtilities.dll Näytä tiedosto


BIN
Backend/Tests/bin/Debug/net6.0/Microsoft.TestPlatform.CrossPlatEngine.dll Näytä tiedosto


BIN
Backend/Tests/bin/Debug/net6.0/Microsoft.TestPlatform.PlatformAbstractions.dll Näytä tiedosto


BIN
Backend/Tests/bin/Debug/net6.0/Microsoft.TestPlatform.Utilities.dll Näytä tiedosto


BIN
Backend/Tests/bin/Debug/net6.0/Microsoft.VisualStudio.CodeCoverage.Shim.dll Näytä tiedosto


+ 0
- 0
Backend/Tests/bin/Debug/net6.0/Microsoft.VisualStudio.TestPlatform.Common.dll Näytä tiedosto


Some files were not shown because too many files changed in this diff

Loading…
Peruuta
Tallenna