Permalink
Browse files

Initial Commit

  • Loading branch information...
grexican committed May 16, 2018
0 parents commit 5e94ef946be986c03690c515497099721b97ac18
Showing with 1,753 additions and 0 deletions.
  1. +292 −0 src/.gitignore
  2. +61 −0 src/.vscode/launch.json
  3. +17 −0 src/.vscode/tasks.json
  4. +6 −0 src/IsNsfw.Command.Interface/ICommand.cs
  5. +11 −0 src/IsNsfw.Command.Interface/ICommandHandler.cs
  6. +11 −0 src/IsNsfw.Command.Interface/ICommandValidator.cs
  7. +13 −0 src/IsNsfw.Command.Interface/ICommandWithResult.cs
  8. +17 −0 src/IsNsfw.Command.Interface/IsNsfw.Command.Interface.csproj
  9. +46 −0 src/IsNsfw.Command/CommandHandlerBase.cs
  10. +12 −0 src/IsNsfw.Command/CommandValidatorBase.cs
  11. +46 −0 src/IsNsfw.Command/CreateLinkCommand.cs
  12. +45 −0 src/IsNsfw.Command/Domains/LinkCommandHandlers.cs
  13. +20 −0 src/IsNsfw.Command/IsNsfw.Command.csproj
  14. +29 −0 src/IsNsfw.Command/ValidationCommandHandlerDecorator.cs
  15. +20 −0 src/IsNsfw.Command/ValidationHelpers.cs
  16. +15 −0 src/IsNsfw.Migration/IsNsfw.Migration.csproj
  17. +7 −0 src/IsNsfw.Model/ISoftDelete.cs
  18. +11 −0 src/IsNsfw.Model/IsNsfw.Model.csproj
  19. +41 −0 src/IsNsfw.Model/Link.cs
  20. +14 −0 src/IsNsfw.Model/LinkTag.cs
  21. +27 −0 src/IsNsfw.Model/Tag.cs
  22. +21 −0 src/IsNsfw.Model/User.cs
  23. +13 −0 src/IsNsfw.Repository.Interface/ILinkRepository.cs
  24. +15 −0 src/IsNsfw.Repository.Interface/IRepository.cs
  25. +17 −0 src/IsNsfw.Repository.Interface/IsNsfw.Repository.Interface.csproj
  26. +11 −0 src/IsNsfw.Repository/IsNsfw.Repository.csproj
  27. +27 −0 src/IsNsfw.Repository/LinkRepository.cs
  28. +50 −0 src/IsNsfw.Repository/RepositoryBase.cs
  29. +21 −0 src/IsNsfw.ServiceInterface/AppHost.cs
  30. +15 −0 src/IsNsfw.ServiceInterface/IsNsfw.ServiceInterface.csproj
  31. +18 −0 src/IsNsfw.ServiceInterface/MyServices.cs
  32. +16 −0 src/IsNsfw.ServiceModel/Hello.cs
  33. +15 −0 src/IsNsfw.ServiceModel/IsNsfw.ServiceModel.csproj
  34. +3 −0 src/IsNsfw.ServiceModel/Types/.gitignore
  35. +96 −0 src/IsNsfw.Tests/CreateLinkCommandTests.cs
  36. +80 −0 src/IsNsfw.Tests/CreateLinkCommandValidatorTests.cs
  37. +45 −0 src/IsNsfw.Tests/IntegrationTest.cs
  38. +24 −0 src/IsNsfw.Tests/IsNsfw.Tests.csproj
  39. +32 −0 src/IsNsfw.Tests/UnitTest.cs
  40. +79 −0 src/IsNsfw.sln
  41. +25 −0 src/IsNsfw/IsNsfw.csproj
  42. +25 −0 src/IsNsfw/Program.cs
  43. +27 −0 src/IsNsfw/Properties/launchSettings.json
  44. +37 −0 src/IsNsfw/Startup.cs
  45. +20 −0 src/IsNsfw/appsettings.Development.json
  46. +15 −0 src/IsNsfw/appsettings.json
  47. +52 −0 src/IsNsfw/wwwroot/_layout.html
  48. +7 −0 src/IsNsfw/wwwroot/about.html
  49. +7 −0 src/IsNsfw/wwwroot/assets/css/bootstrap.css
  50. +8 −0 src/IsNsfw/wwwroot/assets/css/default.css
  51. BIN src/IsNsfw/wwwroot/assets/img/logo.png
  52. +7 −0 src/IsNsfw/wwwroot/assets/js/bootstrap.min.js
  53. +1 −0 src/IsNsfw/wwwroot/assets/js/default.js
  54. +4 −0 src/IsNsfw/wwwroot/assets/js/jquery.min.js
  55. +7 −0 src/IsNsfw/wwwroot/contact.html
  56. +39 −0 src/IsNsfw/wwwroot/index.html
  57. +11 −0 src/IsNsfw/wwwroot/menu.html
  58. +7 −0 src/IsNsfw/wwwroot/services.html
  59. +7 −0 src/NuGet.Config
  60. +20 −0 src/README.md
  61. +68 −0 src/vagrant/vagrantfile
@@ -0,0 +1,292 @@
## Ignore Visual Studio temporary files, build results, and
## files generated by popular Visual Studio add-ons.
##
## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore
# Custom
dist/
coverage/
# User-specific files
*.suo
*.user
*.userosscache
*.sln.docstates
# User-specific files (MonoDevelop/Xamarin Studio)
*.userprefs
# Build results
[Dd]ebug/
[Dd]ebugPublic/
[Rr]elease/
[Rr]eleases/
x64/
x86/
bld/
[Bb]in/
[Oo]bj/
[Ll]og/
# Visual Studio 2015 cache/options directory
.vs/
# Uncomment if you have tasks that create the project's static files in wwwroot
#wwwroot/
# MSTest test Results
[Tt]est[Rr]esult*/
[Bb]uild[Ll]og.*
# NUNIT
*.VisualState.xml
TestResult.xml
# Build Results of an ATL Project
[Dd]ebugPS/
[Rr]eleasePS/
dlldata.c
# .NET Core
project.lock.json
project.fragment.lock.json
artifacts/
#**/Properties/launchSettings.json
*_i.c
*_p.c
*_i.h
*.ilk
*.meta
*.obj
*.pch
*.pdb
*.pgc
*.pgd
*.rsp
*.sbr
*.tlb
*.tli
*.tlh
*.tmp
*.tmp_proj
*.log
*.vspscc
*.vssscc
.builds
*.pidb
*.svclog
*.scc
# Chutzpah Test files
_Chutzpah*
# Visual C++ cache files
ipch/
*.aps
*.ncb
*.opendb
*.opensdf
*.sdf
*.cachefile
*.VC.db
*.VC.VC.opendb
# Visual Studio profiler
*.psess
*.vsp
*.vspx
*.sap
# TFS 2012 Local Workspace
$tf/
# Guidance Automation Toolkit
*.gpState
# ReSharper is a .NET coding add-in
_ReSharper*/
*.[Rr]e[Ss]harper
*.DotSettings.user
# JustCode is a .NET coding add-in
.JustCode
# TeamCity is a build add-in
_TeamCity*
# DotCover is a Code Coverage Tool
*.dotCover
# Visual Studio code coverage results
*.coverage
*.coveragexml
# NCrunch
_NCrunch_*
.*crunch*.local.xml
nCrunchTemp_*
# MightyMoose
*.mm.*
AutoTest.Net/
# Web workbench (sass)
.sass-cache/
# Installshield output folder
[Ee]xpress/
# DocProject is a documentation generator add-in
DocProject/buildhelp/
DocProject/Help/*.HxT
DocProject/Help/*.HxC
DocProject/Help/*.hhc
DocProject/Help/*.hhk
DocProject/Help/*.hhp
DocProject/Help/Html2
DocProject/Help/html
# Click-Once directory
publish/
# Publish Web Output
*.[Pp]ublish.xml
*.azurePubxml
# TODO: Comment the next line if you want to checkin your web deploy settings
# but database connection strings (with potential passwords) will be unencrypted
*.pubxml
*.publishproj
# Microsoft Azure Web App publish settings. Comment the next line if you want to
# checkin your Azure Web App publish settings, but sensitive information contained
# in these scripts will be unencrypted
PublishScripts/
# NuGet Packages
*.nupkg
# The packages folder can be ignored because of Package Restore
**/packages/*
# except build/, which is used as an MSBuild target.
!**/packages/build/
# Uncomment if necessary however generally it will be regenerated when needed
#!**/packages/repositories.config
# NuGet v3's project.json files produces more ignorable files
*.nuget.props
*.nuget.targets
# Microsoft Azure Build Output
csx/
*.build.csdef
# Microsoft Azure Emulator
ecf/
rcf/
# Windows Store app package directories and files
AppPackages/
BundleArtifacts/
Package.StoreAssociation.xml
_pkginfo.txt
# Visual Studio cache files
# files ending in .cache can be ignored
*.[Cc]ache
# but keep track of directories ending in .cache
!*.[Cc]ache/
# Others
ClientBin/
~$*
*~
*.dbmdl
*.dbproj.schemaview
*.jfm
*.pfx
*.publishsettings
orleans.codegen.cs
# Since there are multiple workflows, uncomment next line to ignore bower_components
# (https://github.com/github/gitignore/pull/1529#issuecomment-104372622)
#bower_components/
# RIA/Silverlight projects
Generated_Code/
# Backup & report files from converting an old project file
# to a newer Visual Studio version. Backup files are not needed,
# because we have git ;-)
_UpgradeReport_Files/
Backup*/
UpgradeLog*.XML
UpgradeLog*.htm
# SQL Server files
*.mdf
*.ldf
*.ndf
# Business Intelligence projects
*.rdl.data
*.bim.layout
*.bim_*.settings
# Microsoft Fakes
FakesAssemblies/
# GhostDoc plugin setting file
*.GhostDoc.xml
# Node.js Tools for Visual Studio
.ntvs_analysis.dat
node_modules/
# Typescript v1 declaration files
typings/
# Visual Studio 6 build log
*.plg
# Visual Studio 6 workspace options file
*.opt
# Visual Studio 6 auto-generated workspace file (contains which files were open etc.)
*.vbw
# Visual Studio LightSwitch build output
**/*.HTMLClient/GeneratedArtifacts
**/*.DesktopClient/GeneratedArtifacts
**/*.DesktopClient/ModelManifest.xml
**/*.Server/GeneratedArtifacts
**/*.Server/ModelManifest.xml
_Pvt_Extensions
# Paket dependency manager
.paket/paket.exe
paket-files/
# FAKE - F# Make
.fake/
# JetBrains Rider
.idea/
*.sln.iml
# CodeRush
.cr/
# Python Tools for Visual Studio (PTVS)
__pycache__/
*.pyc
# Cake - Uncomment if you are using it
# tools/**
# !tools/packages.config
# Telerik's JustMock configuration file
*.jmconfig
# BizTalk build output
*.btp.cs
*.btm.cs
*.odx.cs
*.xsd.cs
@@ -0,0 +1,61 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": ".NET Core Launch (console)",
"type": "coreclr",
"request": "launch",
"preLaunchTask": "build",
"program": "${workspaceFolder}/IsNsfw/bin/Debug/netcoreapp2.0/IsNsfw.dll",
"args": [],
"cwd": "${workspaceFolder}/IsNsfw",
"console": "internalConsole",
"stopAtEntry": false,
"internalConsoleOptions": "openOnSessionStart",
"env": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
},
{
"name": ".NET Core Launch (web)",
"type": "coreclr",
"request": "launch",
"preLaunchTask": "build",
"program": "${workspaceFolder}/IsNsfw/bin/Debug/netcoreapp2.0/IsNsfw.dll",
"args": [],
"cwd": "${workspaceFolder}/IsNsfw",
"stopAtEntry": false,
"internalConsoleOptions": "openOnSessionStart",
"launchBrowser": {
"enabled": true,
"args": "${auto-detect-url}",
"windows": {
"command": "cmd.exe",
"args": "/C start ${auto-detect-url}"
},
"osx": {
"command": "open"
},
"linux": {
"command": "xdg-open"
}
},
"env": {
"ASPNETCORE_ENVIRONMENT": "Development"
},
"sourceFileMap": {
"/Views": "${workspaceFolder}/Views"
}
},
{
"name": ".NET Core Attach",
"type": "coreclr",
"request": "attach",
"processId": "${command:pickProcess}"
}
]
}
@@ -0,0 +1,17 @@
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "build",
"command": "dotnet build",
"type": "shell",
"group": "build",
"presentation": {
"reveal": "silent"
},
"problemMatcher": "$msCompile"
}
]
}
@@ -0,0 +1,6 @@
namespace IsNsfw.Command.Interface
{
public interface ICommand
{
}
}
@@ -0,0 +1,11 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace IsNsfw.Command.Interface
{
public interface ICommandHandler<in TCommand> where TCommand : ICommand
{
void Handle(TCommand command);
}
}
Oops, something went wrong.

0 comments on commit 5e94ef9

Please sign in to comment.