ok
This commit is contained in:
14
Jambo/Jambo.Core/Infrastructure/Entities/ITodoItem.cs
Normal file
14
Jambo/Jambo.Core/Infrastructure/Entities/ITodoItem.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Jambo.Core.Infrastructure.Entities
|
||||
{
|
||||
public interface ITodoItem
|
||||
{
|
||||
string Key { get; set; }
|
||||
string Name { get; set; }
|
||||
bool IsComplete { get; set; }
|
||||
}
|
||||
}
|
||||
12
Jambo/Jambo.Core/Infrastructure/IUnitOfWork.cs
Normal file
12
Jambo/Jambo.Core/Infrastructure/IUnitOfWork.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Jambo.Core.Infrastructure
|
||||
{
|
||||
public interface IUnitOfWork
|
||||
{
|
||||
void SaveChanges();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
using Jambo.Core.Infrastructure.Entities;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Jambo.Core.Infrastructure.Repository
|
||||
{
|
||||
public interface ITodoItemRepository
|
||||
{
|
||||
void Add(ITodoItem item);
|
||||
IEnumerable<ITodoItem> GetAll();
|
||||
ITodoItem Find(string key);
|
||||
ITodoItem Remove(string key);
|
||||
void Update(ITodoItem item);
|
||||
}
|
||||
}
|
||||
21
Jambo/Jambo.Core/Jambo.Core.xproj
Normal file
21
Jambo/Jambo.Core/Jambo.Core.xproj
Normal file
@@ -0,0 +1,21 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">14.0</VisualStudioVersion>
|
||||
<VSToolsPath Condition="'$(VSToolsPath)' == ''">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)</VSToolsPath>
|
||||
</PropertyGroup>
|
||||
|
||||
<Import Project="$(VSToolsPath)\DotNet\Microsoft.DotNet.Props" Condition="'$(VSToolsPath)' != ''" />
|
||||
<PropertyGroup Label="Globals">
|
||||
<ProjectGuid>4c116e5c-8df9-442e-be3d-3ec181d1159b</ProjectGuid>
|
||||
<RootNamespace>Jambo.Core</RootNamespace>
|
||||
<BaseIntermediateOutputPath Condition="'$(BaseIntermediateOutputPath)'=='' ">.\obj</BaseIntermediateOutputPath>
|
||||
<OutputPath Condition="'$(OutputPath)'=='' ">.\bin\</OutputPath>
|
||||
<TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup>
|
||||
<SchemaVersion>2.0</SchemaVersion>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VSToolsPath)\DotNet\Microsoft.DotNet.targets" Condition="'$(VSToolsPath)' != ''" />
|
||||
</Project>
|
||||
19
Jambo/Jambo.Core/Properties/AssemblyInfo.cs
Normal file
19
Jambo/Jambo.Core/Properties/AssemblyInfo.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
using System.Reflection;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
// General Information about an assembly is controlled through the following
|
||||
// set of attributes. Change these attribute values to modify the information
|
||||
// associated with an assembly.
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("")]
|
||||
[assembly: AssemblyProduct("Jambo.Core")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
|
||||
// Setting ComVisible to false makes the types in this assembly not visible
|
||||
// to COM components. If you need to access a type in this assembly from
|
||||
// COM, set the ComVisible attribute to true on that type.
|
||||
[assembly: ComVisible(false)]
|
||||
|
||||
// The following GUID is for the ID of the typelib if this project is exposed to COM
|
||||
[assembly: Guid("4c116e5c-8df9-442e-be3d-3ec181d1159b")]
|
||||
8
Jambo/Jambo.Core/Services/Aggregates/ITodoItem.cs
Normal file
8
Jambo/Jambo.Core/Services/Aggregates/ITodoItem.cs
Normal file
@@ -0,0 +1,8 @@
|
||||
namespace Jambo.Core.Services.Aggregates
|
||||
{
|
||||
public class ITodoItem
|
||||
{
|
||||
string Key { get; set; }
|
||||
string Description { get; set; }
|
||||
}
|
||||
}
|
||||
7
Jambo/Jambo.Core/Services/Aggregates/ITodoItemDetails.cs
Normal file
7
Jambo/Jambo.Core/Services/Aggregates/ITodoItemDetails.cs
Normal file
@@ -0,0 +1,7 @@
|
||||
namespace Jambo.Core.Services.Aggregates
|
||||
{
|
||||
public interface ITodoItemDetails
|
||||
{
|
||||
string Description { get; set; }
|
||||
}
|
||||
}
|
||||
9
Jambo/Jambo.Core/Services/ITodoITemService.cs
Normal file
9
Jambo/Jambo.Core/Services/ITodoITemService.cs
Normal file
@@ -0,0 +1,9 @@
|
||||
using Jambo.Core.Services.Aggregates;
|
||||
|
||||
namespace Jambo.Core.Services
|
||||
{
|
||||
public interface ITodoITemService
|
||||
{
|
||||
ITodoItem Create(ITodoItemDetails addItem);
|
||||
}
|
||||
}
|
||||
13
Jambo/Jambo.Core/project.json
Normal file
13
Jambo/Jambo.Core/project.json
Normal file
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"version": "1.0.0-*",
|
||||
|
||||
"dependencies": {
|
||||
"NETStandard.Library": "1.6.0"
|
||||
},
|
||||
|
||||
"frameworks": {
|
||||
"netstandard1.6": {
|
||||
"imports": "dnxcore50"
|
||||
}
|
||||
}
|
||||
}
|
||||
46
Jambo/Jambo.sln
Normal file
46
Jambo/Jambo.sln
Normal file
@@ -0,0 +1,46 @@
|
||||
|
||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio 14
|
||||
VisualStudioVersion = 14.0.25420.1
|
||||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "Jambo.Core", "Jambo.Core\Jambo.Core.xproj", "{4C116E5C-8DF9-442E-BE3D-3EC181D1159B}"
|
||||
EndProject
|
||||
Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "Jambo.EFRepository", "Jambo.EFRepository\Jambo.EFRepository.xproj", "{4D2758CD-4954-4785-9D29-822052E49585}"
|
||||
EndProject
|
||||
Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "Jambo.Services", "Jambo.Services\Jambo.Services.xproj", "{2D1DB40A-728D-4284-99E2-6505FC786A8E}"
|
||||
EndProject
|
||||
Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "Jambo.Infrastructure", "Jambo.Infrastructure\Jambo.Infrastructure.xproj", "{40EA14EE-C169-4FA9-9059-CB4DAB71B9B4}"
|
||||
EndProject
|
||||
Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "Jambo.EFInfrastructure", "Jambo.EFInfrastructure\Jambo.EFInfrastructure.xproj", "{4BFECE9B-334C-4899-AEB6-3392B916F7EF}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
Release|Any CPU = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{4C116E5C-8DF9-442E-BE3D-3EC181D1159B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{4C116E5C-8DF9-442E-BE3D-3EC181D1159B}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{4C116E5C-8DF9-442E-BE3D-3EC181D1159B}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{4C116E5C-8DF9-442E-BE3D-3EC181D1159B}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{4D2758CD-4954-4785-9D29-822052E49585}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{4D2758CD-4954-4785-9D29-822052E49585}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{4D2758CD-4954-4785-9D29-822052E49585}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{4D2758CD-4954-4785-9D29-822052E49585}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{2D1DB40A-728D-4284-99E2-6505FC786A8E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{2D1DB40A-728D-4284-99E2-6505FC786A8E}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{2D1DB40A-728D-4284-99E2-6505FC786A8E}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{2D1DB40A-728D-4284-99E2-6505FC786A8E}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{40EA14EE-C169-4FA9-9059-CB4DAB71B9B4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{40EA14EE-C169-4FA9-9059-CB4DAB71B9B4}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{40EA14EE-C169-4FA9-9059-CB4DAB71B9B4}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{40EA14EE-C169-4FA9-9059-CB4DAB71B9B4}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{4BFECE9B-334C-4899-AEB6-3392B916F7EF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{4BFECE9B-334C-4899-AEB6-3392B916F7EF}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{4BFECE9B-334C-4899-AEB6-3392B916F7EF}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{4BFECE9B-334C-4899-AEB6-3392B916F7EF}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
EndGlobal
|
||||
Reference in New Issue
Block a user