public TrollPhotosPresenter(ITrollPhotosView view, ITrollPhotoService trollPhotoService) : base(view) { Guard.WhenArgument(trollPhotoService, "trollPhotoService").IsNull().Throw(); this.trollPhotoService = trollPhotoService; this.View.GetTrollPhotosPaths += this.View_GetTrollPhotosPaths; }
public UserPresenter(IUserView view, IUserService userService, ITrollPhotoService trollPhotoService) : base(view) { Guard.WhenArgument(userService, "userService").IsNull().Throw(); Guard.WhenArgument(trollPhotoService, "trollPhotoService").IsNull().Throw(); this.userService = userService; this.trollPhotoService = trollPhotoService; this.View.GetUser += this.View_GetUser; this.View.UploadTrollPhoto += this.View_UploadTrollPhoto; }