diff --git a/NetworkResurrector.Api/NetworkResurrector.Api.csproj b/NetworkResurrector.Api/NetworkResurrector.Api.csproj
index d12c450..602886b 100644
--- a/NetworkResurrector.Api/NetworkResurrector.Api.csproj
+++ b/NetworkResurrector.Api/NetworkResurrector.Api.csproj
@@ -4,5 +4,24 @@
netcoreapp3.1
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/NetworkResurrector.Application/Class1.cs b/NetworkResurrector.Application/Class1.cs
deleted file mode 100644
index b12d837..0000000
--- a/NetworkResurrector.Application/Class1.cs
+++ /dev/null
@@ -1,8 +0,0 @@
-using System;
-
-namespace NetworkResurrector.Application
-{
- public class Class1
- {
- }
-}
diff --git a/NetworkResurrector.Application/Mappings/MappingProfile.cs b/NetworkResurrector.Application/Mappings/MappingProfile.cs
new file mode 100644
index 0000000..58c629a
--- /dev/null
+++ b/NetworkResurrector.Application/Mappings/MappingProfile.cs
@@ -0,0 +1,11 @@
+using AutoMapper;
+
+namespace NetworkResurrector.Application.Mappings
+{
+ public class MappingProfile : Profile
+ {
+ public MappingProfile()
+ {
+ }
+ }
+}
diff --git a/NetworkResurrector.Application/NetworkResurrector.Application.csproj b/NetworkResurrector.Application/NetworkResurrector.Application.csproj
index 9f5c4f4..a5679d9 100644
--- a/NetworkResurrector.Application/NetworkResurrector.Application.csproj
+++ b/NetworkResurrector.Application/NetworkResurrector.Application.csproj
@@ -4,4 +4,13 @@
netstandard2.0
+
+
+
+
+
+
+
+
+
diff --git a/NetworkResurrector.Application/Queries/GetToken.cs b/NetworkResurrector.Application/Queries/GetToken.cs
new file mode 100644
index 0000000..cd7a344
--- /dev/null
+++ b/NetworkResurrector.Application/Queries/GetToken.cs
@@ -0,0 +1,42 @@
+using AutoMapper;
+using MediatR;
+using System;
+using System.Threading;
+using System.Threading.Tasks;
+
+namespace NetworkResurrector.Application.Queries
+{
+ public class GetToken
+ {
+ public class Query : Query
+ {
+ public string UserName { get; set; }
+ public string Password { get; set; }
+ public Query() { }
+ }
+
+ public class Model
+ {
+ public Guid Token { get; set; }
+ public DateTime ValidUntil { get; set; }
+ }
+
+ public class QueryHandler : IRequestHandler
+ {
+ private readonly IMapper _mapper;
+
+ public QueryHandler(IMapper mapper)
+ {
+ _mapper = mapper;
+ }
+
+ public async Task Handle(Query request, CancellationToken cancellationToken)
+ {
+
+ var result = _mapper.Map(new { Token = Guid.NewGuid(), ValidUntil = DateTime.Now });
+
+ return result;
+ }
+ }
+ }
+}
diff --git a/NetworkResurrector.Application/Queries/Query.cs b/NetworkResurrector.Application/Queries/Query.cs
new file mode 100644
index 0000000..2341bb4
--- /dev/null
+++ b/NetworkResurrector.Application/Queries/Query.cs
@@ -0,0 +1,6 @@
+using MediatR;
+
+namespace NetworkResurrector.Application.Queries
+{
+ public abstract class Query : IRequest, IBaseRequest { }
+}