public NewsfeedMessageProcessor(IPrivateRepository _privateRepo, INewsfeedRepository _newsfeedRepo) { this._privateRepo = _privateRepo; this._newsfeedRepo = _newsfeedRepo; this._remoteConnection = new RemoteConnection(); #region Mappings Mapper.CreateMap <NewsfeedDto, WallPost>(); Mapper.CreateMap <WallPost, NewsfeedDto>(); #endregion }
void Initialize() { lbn_status = FindViewById <TextView> (Resource.Id.test_lbn_status); btn_reg = FindViewById <Button> (Resource.Id.test_btn_reg); btn_reg.Click += (object sender, EventArgs e) => _loginMessageProcessor.RegisterUser(); _pRepo = TinyIoCContainer.Current.Resolve <IPrivateRepository> (); _loginMessageProcessor = TinyIoCContainer.Current.Resolve <ILoginMessageProcessor> (); _pRepo.CreateUser("Jonas", "040123"); _loginMessageProcessor.OnRegisterResult += _loginMessageProcessor_OnRegisterResult; }
public PrivateService(IPrivateRepository <M> repository, AppSettings appSettings) : base(repository, appSettings) { }
public LoginMessageProcessor(IPrivateRepository _privateRepo) { this._remoteConnection = new RemoteConnection(); this._privateRepo = _privateRepo; }