Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
CleanArchitecture
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
tsai
CleanArchitecture
Commits
2276af0b
Commit
2276af0b
authored
Mar 09, 2018
by
Steve Smith
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updating packages
And cleaning up some unused views.
parent
c70ff69e
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
23 additions
and
64 deletions
+23
-64
CleanArchitecture.Core.csproj
src/CleanArchitecture.Core/CleanArchitecture.Core.csproj
+4
-0
ToDoItemService.cs
src/CleanArchitecture.Core/Services/ToDoItemService.cs
+4
-1
CleanArchitecture.Infrastructure.csproj
...re.Infrastructure/CleanArchitecture.Infrastructure.csproj
+1
-1
CleanArchitecture.Web.csproj
src/CleanArchitecture.Web/CleanArchitecture.Web.csproj
+3
-3
HomeController.cs
src/CleanArchitecture.Web/Controllers/HomeController.cs
+1
-19
About.cshtml
src/CleanArchitecture.Web/Views/Home/About.cshtml
+0
-7
Contact.cshtml
src/CleanArchitecture.Web/Views/Home/Contact.cshtml
+0
-17
Index.cshtml
src/CleanArchitecture.Web/Views/Home/Index.cshtml
+4
-8
web.config
src/CleanArchitecture.Web/web.config
+3
-5
CleanArchitecture.Tests.csproj
tests/CleanArchitecture.Tests/CleanArchitecture.Tests.csproj
+3
-3
No files found.
src/CleanArchitecture.Core/CleanArchitecture.Core.csproj
View file @
2276af0b
...
...
@@ -6,6 +6,10 @@
<PackageId>CleanArchitecture.Core</PackageId>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Ardalis.GuardClauses" Version="1.2.3" />
</ItemGroup>
<ItemGroup>
<PackageReference Update="NETStandard.Library" Version="2.0.1" />
</ItemGroup>
...
...
src/CleanArchitecture.Core/Services/ToDoItemService.cs
View file @
2276af0b
using
CleanArchitecture.Core.Events
;
using
Ardalis.GuardClauses
;
using
CleanArchitecture.Core.Events
;
using
CleanArchitecture.Core.Interfaces
;
namespace
CleanArchitecture.Core.Services
...
...
@@ -7,6 +8,8 @@ namespace CleanArchitecture.Core.Services
{
public
void
Handle
(
ToDoItemCompletedEvent
domainEvent
)
{
Guard
.
Against
.
Null
(
domainEvent
,
nameof
(
domainEvent
));
// Do Nothing
}
}
...
...
src/CleanArchitecture.Infrastructure/CleanArchitecture.Infrastructure.csproj
View file @
2276af0b
...
...
@@ -11,7 +11,7 @@
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.All" Version="2.0.
3
" />
<PackageReference Include="Microsoft.AspNetCore.All" Version="2.0.
5
" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="2.0.1" PrivateAssets="All" />
<PackageReference Include="StructureMap.Microsoft.DependencyInjection" Version="1.4.0" />
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="2.0.1" />
...
...
src/CleanArchitecture.Web/CleanArchitecture.Web.csproj
View file @
2276af0b
...
...
@@ -24,10 +24,10 @@
<ItemGroup>
<PackageReference Include="Dapper" Version="1.50.4" />
<PackageReference Include="Microsoft.AspNetCore.All" Version="2.0.
3
" />
<PackageReference Include="Microsoft.AspNetCore.All" Version="2.0.
5
" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="2.0.1" PrivateAssets="All" />
<PackageReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Design" Version="2.0.
1
" PrivateAssets="All" />
<PackageReference Include="Swashbuckle.AspNetCore" Version="
1.1
.0" />
<PackageReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Design" Version="2.0.
2
" PrivateAssets="All" />
<PackageReference Include="Swashbuckle.AspNetCore" Version="
2.2
.0" />
</ItemGroup>
<ItemGroup>
...
...
src/CleanArchitecture.Web/Controllers/HomeController.cs
View file @
2276af0b
using
System
;
using
System.Collections.Generic
;
using
System.Linq
;
using
System.Threading.Tasks
;
using
Microsoft.AspNetCore.Mvc
;
using
Microsoft.AspNetCore.Mvc
;
namespace
CleanArchitecture.Web.Controllers
{
...
...
@@ -13,20 +9,6 @@ namespace CleanArchitecture.Web.Controllers
return
View
();
}
public
IActionResult
About
()
{
ViewData
[
"Message"
]
=
"Your application description page."
;
return
View
();
}
public
IActionResult
Contact
()
{
ViewData
[
"Message"
]
=
"Your contact page."
;
return
View
();
}
public
IActionResult
Error
()
{
return
View
();
...
...
src/CleanArchitecture.Web/Views/Home/About.cshtml
deleted
100644 → 0
View file @
c70ff69e
@{
ViewData["Title"] = "About";
}
<h2>@ViewData["Title"].</h2>
<h3>@ViewData["Message"]</h3>
<p>Use this area to provide additional information.</p>
src/CleanArchitecture.Web/Views/Home/Contact.cshtml
deleted
100644 → 0
View file @
c70ff69e
@{
ViewData["Title"] = "Contact";
}
<h2>@ViewData["Title"].</h2>
<h3>@ViewData["Message"]</h3>
<address>
One Microsoft Way<br />
Redmond, WA 98052-6399<br />
<abbr title="Phone">P:</abbr>
425.555.0100
</address>
<address>
<strong>Support:</strong> <a href="mailto:Support@example.com">Support@example.com</a><br />
<strong>Marketing:</strong> <a href="mailto:Marketing@example.com">Marketing@example.com</a>
</address>
src/CleanArchitecture.Web/Views/Home/Index.cshtml
View file @
2276af0b
...
...
@@ -12,15 +12,11 @@
</ul>
</div>
<div class="col-md-6">
<h2>
How to
</h2>
<h2>
About the Author
</h2>
<ul>
<li><a href="http://go.microsoft.com/fwlink/?LinkID=398600">Add a Controller and View</a></li>
<li><a href="http://go.microsoft.com/fwlink/?LinkID=699562">Add an appsetting in config and access it in app.</a></li>
<li><a href="http://go.microsoft.com/fwlink/?LinkId=699315">Manage User Secrets using Secret Manager.</a></li>
<li><a href="http://go.microsoft.com/fwlink/?LinkId=699316">Use logging to log a message.</a></li>
<li><a href="http://go.microsoft.com/fwlink/?LinkId=699317">Add packages using NuGet.</a></li>
<li><a href="http://go.microsoft.com/fwlink/?LinkId=699318">Add client packages using Bower.</a></li>
<li><a href="http://go.microsoft.com/fwlink/?LinkId=699319">Target development, staging or production environment.</a></li>
<li><a href="https://ardalis.com">Blog - Ardalis.com</a></li>
<li><a href="https://twitter.com/ardalis">Twitter - @@ardalis</a></li>
<li><a href="https://github.com/ardalis">GitHub</a></li>
</ul>
</div>
</div>
src/CleanArchitecture.Web/web.config
View file @
2276af0b
<?
xml
version
=
"1.0"
encoding
=
"utf-8"
?>
<
configuration
>
<!--
Configure
your
application
settings
in
appsettings
.
json
.
Learn
more
at
http
://
go
.
microsoft
.
com
/
fwlink
/?
LinkId
=
786380
-->
<
system
.
webServer
>
<
handlers
>
<
add
name
=
"aspNetCore"
path
=
"*"
verb
=
"*"
modules
=
"AspNetCoreModule"
resourceType
=
"Unspecified"
/>
<
add
name
=
"aspNetCore"
path
=
"*"
verb
=
"*"
modules
=
"AspNetCoreModule"
resourceType
=
"Unspecified"
/>
</
handlers
>
<
aspNetCore
processPath
=
"%LAUNCHER_PATH%"
arguments
=
"%LAUNCHER_ARGS%"
stdoutLogEnabled
=
"false"
stdoutLogFile
=
".\logs\stdout"
forwardWindowsAuthToken
=
"false"
/>
<
aspNetCore
processPath
=
"%LAUNCHER_PATH%"
arguments
=
"%LAUNCHER_ARGS%"
stdoutLogEnabled
=
"false"
stdoutLogFile
=
".\logs\stdout"
forwardWindowsAuthToken
=
"false"
startupTimeLimit
=
"3600"
requestTimeout
=
"23:00:00"
/>
</
system
.
webServer
>
</
configuration
>
</
configuration
>
\ No newline at end of file
tests/CleanArchitecture.Tests/CleanArchitecture.Tests.csproj
View file @
2276af0b
...
...
@@ -31,10 +31,10 @@
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.Mvc" Version="2.0.
1
" />
<PackageReference Include="Microsoft.AspNetCore.Mvc" Version="2.0.
2
" />
<PackageReference Include="Microsoft.AspNetCore.TestHost" Version="2.0.1" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.
5.0
" />
<PackageReference Include="Moq" Version="4.
7.145
" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.
6.1
" />
<PackageReference Include="Moq" Version="4.
8.2
" />
<PackageReference Include="NETStandard.Library" Version="2.0.1" />
<PackageReference Include="xunit" Version="2.3.1" />
<PackageReference Include="xunit.runner.console" Version="2.3.1" />
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment