|
|
|
@ -1,21 +1,21 @@ |
|
|
|
|
using espacecollab.backend.infrastructure.interfaces; |
|
|
|
|
using espacecollab.backend.infrastructure.sql.dtos; |
|
|
|
|
//using espacecollab.backend.infrastructure.interfaces; |
|
|
|
|
//using espacecollab.backend.infrastructure.sql.dtos; |
|
|
|
|
|
|
|
|
|
namespace espacecollab.backend.infrastructure.fake; |
|
|
|
|
//namespace espacecollab.backend.infrastructure.fake; |
|
|
|
|
|
|
|
|
|
public class FakeBusinessUnitRepository : GenericFakeRepository<BusinessUnitSqlDto>, IBusinessUnitRepository |
|
|
|
|
{ |
|
|
|
|
public FakeBusinessUnitRepository() |
|
|
|
|
{ |
|
|
|
|
Context = new List<BusinessUnitSqlDto> |
|
|
|
|
{ |
|
|
|
|
new(1, "BU 1", 1), |
|
|
|
|
new(2, "BU 2", 1) |
|
|
|
|
}; |
|
|
|
|
} |
|
|
|
|
//public class FakeBusinessUnitRepository : GenericFakeRepository<BusinessUnitSqlDto>, IBusinessUnitRepository |
|
|
|
|
//{ |
|
|
|
|
// public FakeBusinessUnitRepository() |
|
|
|
|
// { |
|
|
|
|
// Context = new List<BusinessUnitSqlDto> |
|
|
|
|
// { |
|
|
|
|
// new(1, "BU 1", 1), |
|
|
|
|
// new(2, "BU 2", 1) |
|
|
|
|
// }; |
|
|
|
|
// } |
|
|
|
|
|
|
|
|
|
public IList<BusinessUnitSqlDto> GetBusinessUnitsByAgence(int agenceId) |
|
|
|
|
{ |
|
|
|
|
return Context.Where(c => c.AgenceId == agenceId).ToList(); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
// public IList<BusinessUnitSqlDto> GetBusinessUnitsByAgence(int agenceId) |
|
|
|
|
// { |
|
|
|
|
// return Context.Where(c => c.AgenceId == agenceId).ToList(); |
|
|
|
|
// } |
|
|
|
|
//} |