Skip to content

Commit

Permalink
#218 - Split by module.
Browse files Browse the repository at this point in the history
  • Loading branch information
maraf committed Mar 2, 2019
1 parent 67d7a10 commit 0f95579
Show file tree
Hide file tree
Showing 16 changed files with 21 additions and 19 deletions.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;

namespace Money.Controllers
namespace Money.Domain.Controllers
{
[Route("api/[controller]")]
[ApiController]
Expand Down
2 changes: 1 addition & 1 deletion src/Money.Api/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
using System.Threading.Tasks;
using Microsoft.AspNetCore;
using Microsoft.AspNetCore.Hosting;
using Money.Data;
using Money.Users.Data;

namespace Money
{
Expand Down
2 changes: 2 additions & 0 deletions src/Money.Api/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
using Microsoft.IdentityModel.Tokens;
using Money.Data;
using Money.Models;
using Money.Users.Data;
using Money.Users.Models;

namespace Money
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Options;
using Microsoft.IdentityModel.Tokens;
using Money.Models;
using Money.Users.Models;
using Neptuo;
using System;
using System.Collections.Generic;
Expand All @@ -12,7 +12,7 @@
using System.Text;
using System.Threading.Tasks;

namespace Money.Controllers
namespace Money.Users.Controllers
{
[Route("api/[controller]/[action]")]
public class UserController : ControllerBase
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using Microsoft.AspNetCore.Identity;
using Microsoft.Extensions.DependencyInjection;
using Money.Commands;
using Money.Models;
using Money.Users.Models;
using Neptuo;
using Neptuo.Commands;
using Neptuo.Models.Keys;
Expand All @@ -12,7 +12,7 @@
using System.Text;
using System.Threading.Tasks;

namespace Money.Data
namespace Money.Users.Data
{
public static class ApplicationDataSeeder
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
using Microsoft.AspNetCore.Identity.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore;
using Money.Models;
using Money.Users.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace Money.Data
namespace Money.Users.Data
{
public class ApplicationDbContext : IdentityDbContext<ApplicationUser>
{
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Migrations;

namespace Money.Data.Migrations
namespace Money.Users.Data.Migrations
{
public partial class CreateIdentitySchema : Migration
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Migrations;

namespace Money.Data.Migrations
namespace Money.Users.Data.Migrations
{
[DbContext(typeof(ApplicationDbContext))]
partial class ApplicationDbContextModelSnapshot : ModelSnapshot
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
using System.Threading.Tasks;
using Microsoft.AspNetCore.Identity;

namespace Money.Models
namespace Money.Users.Models
{
public class ApplicationUser : IdentityUser
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
using System.Text;
using System.Threading.Tasks;

namespace Money.Models
namespace Money.Users.Models
{
public static class ClaimsPrincipalExtensions
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
using System.Text;
using System.Threading.Tasks;

namespace Money.Models
namespace Money.Users.Models
{
public class JwtOptions
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
using System.Text;
using System.Threading.Tasks;

namespace Money.Models
namespace Money.Users.Models
{
public class LoginRequest
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
using System.Text;
using System.Threading.Tasks;

namespace Money.Models
namespace Money.Users.Models
{
public class LoginResponse
{
Expand Down
6 changes: 3 additions & 3 deletions src/Money.Api/appsettings.Development.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
"ExpiryInDays": 14
},
"ConnectionStrings": {
"Application": "Filename={BasePath}/data/Application.db",
"EventSourcing": "Filename={BasePath}/data/EventSourcing.db",
"ReadModel": "Filename={BasePath}/data/ReadModel.db"
"Application": "Filename={BasePath}/common/data/Application.db",
"EventSourcing": "Filename={BasePath}/common/data/EventSourcing.db",
"ReadModel": "Filename={BasePath}/common/data/ReadModel.db"
}
}

0 comments on commit 0f95579

Please sign in to comment.