Write (failing) unit tests for comming development
This commit is contained in:
parent
35d5848e3c
commit
96d130d0b5
8 changed files with 317 additions and 2 deletions
25
API/Services/PersonService.cs
Normal file
25
API/Services/PersonService.cs
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
using System.Threading.Tasks;
|
||||
using API.Data;
|
||||
using API.Entities.Person;
|
||||
|
||||
namespace API.Services;
|
||||
|
||||
public interface IPersonService
|
||||
{
|
||||
/// <summary>
|
||||
/// Adds src as an alias to dst, this is a destructive operation
|
||||
/// </summary>
|
||||
/// <param name="dst">Remaining person</param>
|
||||
/// <param name="src">Merged person</param>
|
||||
/// <returns></returns>
|
||||
Task MergePeopleAsync(Person dst, Person src);
|
||||
}
|
||||
|
||||
public class PersonService(IUnitOfWork unitOfWork): IPersonService
|
||||
{
|
||||
|
||||
public async Task MergePeopleAsync(Person dst, Person src)
|
||||
{
|
||||
throw new System.NotImplementedException();
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue