Esempio n. 1
0
 public AccountController(
     UsersViewService usersService,
     CryptographicHelper cryptoHelper,
     IdGenerator idGenerator,
     AuthenticationService authenticationService,
     FacebookClientFactory fbFactory,
     SiteSettings settings)
 {
     _usersService          = usersService;
     _cryptoHelper          = cryptoHelper;
     _idGenerator           = idGenerator;
     _authenticationService = authenticationService;
     _fb       = fbFactory.GetClient();
     _settings = settings;
 }
Esempio n. 2
0
        static void Main(string[] args)
        {
            Display d1 = new Display("Assa");
            Display d2 = new Display("Yuval");
            Display d3 = new Display("Idan");
            FacebookClientFactory  factory   = new FacebookClientFactory();
            DolphinsFacebookClient AssaWall  = (DolphinsFacebookClient)factory.CreateClient(d1);
            DolphinsFacebookClient YuvalWall = (DolphinsFacebookClient)factory.CreateClient(d2);
            DolphinsFacebookClient IdanWall  = (DolphinsFacebookClient)factory.CreateClient(d3);

            AssaWall.Subscribe(YuvalWall);
            AssaWall.Subscribe(IdanWall);
            IdanWall.Subscribe(YuvalWall);
            IdanWall.Subscribe(AssaWall);
            YuvalWall.WriteNewWallPost("Mamas enough with the number 6!!!!");
            AssaWall.WriteNewWallPost("Enough with those avatars on facebook! Where are the indian people who build pools??");
        }