예제 #1
0
 public Building(BuildingId id, string name, Company mainContractor, IEnumerable <Company> subContractors = null) : this(name, mainContractor, subContractors)
 {
     Id = id;
 }
예제 #2
0
파일: User.cs 프로젝트: Bubelks/Bubelsoft
 public UserRole(UserBuildingRole userBuildingRole, BuildingId buildingId)
 {
     UserBuildingRole = userBuildingRole;
     BuildingId       = buildingId;
 }
예제 #3
0
 public bool Equals(BuildingId other)
 {
     return(Value == other.Value);
 }
예제 #4
0
파일: User.cs 프로젝트: Bubelks/Bubelsoft
 public bool CanReport(BuildingId buildingId)
 => Roles.Any(r => r.BuildingId == buildingId && r.UserBuildingRole == UserBuildingRole.Reporter);