create project and customercontroller

This commit is contained in:
2023-06-05 15:28:51 +02:00
parent 5aa09670bc
commit d5aeb0a06e
24 changed files with 325 additions and 2 deletions

View File

@@ -0,0 +1,9 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
</Project>

View File

@@ -0,0 +1,14 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AB.Domain.Entities
{
public class Customer
{
Guid coutomerId;
}
}

View File

@@ -0,0 +1,14 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AB.Domain.Entities
{
public class Product
{
Guid productId;
}
}

View File

@@ -0,0 +1,14 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AB.Domain.Entities
{
public class Supplier
{
Guid supplierId;
}
}

View File

@@ -0,0 +1,17 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AB.Domain.Exceptions
{
public class BusinessPartnerNotFoundException : NotFoundException
{
public BusinessPartnerNotFoundException(Guid businessPartnerId)
: base ($"The BusinessPartner with the indetifier {businessPartnerId} was not found.")
{ }
}
}

View File

@@ -0,0 +1,20 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AB.Domain.Exceptions
{
[Serializable]
public abstract class NotFoundException : Exception
{
public NotFoundException() { }
public NotFoundException(string message) : base(message) { }
public NotFoundException(string message, Exception inner) : base(message, inner) { }
protected NotFoundException(
System.Runtime.Serialization.SerializationInfo info,
System.Runtime.Serialization.StreamingContext context) : base(info, context) { }
}
}

View File

@@ -0,0 +1,12 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AB.Domain.Repositories
{
public class ICustomerRepository
{
}
}

View File

@@ -0,0 +1,12 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AB.Domain.Repositories
{
public class ISupplierRepository
{
}
}

View File

@@ -0,0 +1,12 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AB.Domain.Repositories
{
public class IUnitOfWork
{
}
}