Skip to content

Commit

Permalink
Replace Headway.RemediatR with Headway.RemediatR.Core #52
Browse files Browse the repository at this point in the history
Replace Headway.RemediatR with Headway.RemediatR.Core #52
  • Loading branch information
grantcolley committed May 30, 2022
1 parent d40e213 commit f7da8f5
Show file tree
Hide file tree
Showing 7 changed files with 32 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,11 @@

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>

<ItemGroup>
<ProjectReference Include="..\Headway.Core\Headway.Core.csproj" />
</ItemGroup>

</Project>
16 changes: 16 additions & 0 deletions src/Headway.RemediatR.Core/Interface/IRemediatRRepository.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
using Headway.Core.Interface;
using Headway.RemediatR.Core.Model;
using System.Collections.Generic;
using System.Threading.Tasks;

namespace Headway.RemediatR.Core.Interface
{
public interface IRemediatRRepository : IRepository
{
Task<IEnumerable<Product>> GetProductsAsync();
Task<Product> GetProductAsync(int id);
Task<Product> AddProductAsync(Product product);
Task<Product> UpdateProductAsync(Product product);
Task<int> DeleteProductAsync(int id);
}
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
namespace Headway.RemediatR.Model
using System.Collections.Generic;

namespace Headway.RemediatR.Core.Model
{
public class Customer
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
namespace Headway.RemediatR.Model
using System;

namespace Headway.RemediatR.Core.Model
{
public class CustomerProduct
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
namespace Headway.RemediatR.Model
namespace Headway.RemediatR.Core.Model
{
public class Product
{
public int ProductId { get; set; }
public string Name { get; set; }
public string? Name { get; set; }
}
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Headway.RemediatR.Model
namespace Headway.RemediatR.Core.Model
{
public class Program
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
namespace Headway.RemediatR.Model
using System.Collections.Generic;

namespace Headway.RemediatR.Core.Model
{
public class Redress
{
Expand Down

0 comments on commit f7da8f5

Please sign in to comment.