Exemplo n.º 1
0
 public static UpdateStatusPresenter NewStatusPresenter(UpdateStatusView View)
 {
     return new UpdateStatusPresenter {
         View = View,
         TweetService = Domain.ObjectFactory.NewTweetService,
         UrlShrinker = Domain.ObjectFactory.NewUrlShrinker,
     };
 }
Exemplo n.º 2
0
        public TweetingPhotos()
        {
            Domain.Settings.PhotoService = "yfrog";
            Domain.Settings.PhotoService = "twitpic";

            UpdateStatusView = Create.TestObjectFor<UpdateStatusView>();
            UpdateStatusView.UpdateText = "prefix  suffix";
            Given.That(UpdateStatusView).CursorPos.Is("prefix ".Length);

            UpdateStatusPresenter = PresenterFactory.NewStatusPresenter(UpdateStatusView);
        }
Exemplo n.º 3
0
 public UpdateStatus()
 {
     UpdateStatusView = Create.TestObjectFor<UpdateStatusView>();
     UpdateStatusPresenter = PresenterFactory.NewStatusPresenter(UpdateStatusView);
     TweetService = UpdateStatusPresenter.TweetService;
 }
Exemplo n.º 4
0
 public ShorteningUrls()
 {
     Domain.Settings.UrlShrinker = "u.nu";
     UpdateStatusView = Create.TestObjectFor<UpdateStatusView>();
     UpdateStatusPresenter = PresenterFactory.NewStatusPresenter(UpdateStatusView);
 }