CodeLiturgy.Dashboard/include/BlueWest.MapTo/test/MapTo.Integration.Tests/Data/Models/Employee.cs

29 lines
627 B
C#
Raw Normal View History

2022-08-17 23:17:37 +03:00
namespace MapTo.Integration.Tests.Data.Models
{
public class Employee
{
private Manager _manager;
public int Id { get; set; }
public string EmployeeCode { get; set; }
public Manager Manager
{
get => _manager;
set
{
if (value == null)
{
_manager.Employees.Remove(this);
}
else
{
value.Employees.Add(this);
}
_manager = value;
}
}
}
}