Exemplo n.º 1
0
        static void Main(string[] args)
        {
            RealEstateMediator mediator = new RealEstateMediator();

            HouseOwner owner = new HouseOwner(1, "Abay", mediator);

            Client client = new Client(1, "Serzhan", mediator);


            owner.HouseAddress = "Zenkova 32";
            owner.SellHouse();


            client.HouseAddress = "Zenkova 32";


            client.BuyHouse();
        }
Exemplo n.º 2
0
 public HouseOwner(long id, string name, RealEstateMediator mediator)
 {
     Id       = id;
     Name     = name;
     Mediator = mediator;
 }