Ejemplo n.º 1
0
 private ModelFactory()
 {
     _tcApi               = new TCApi();
     _logInModel          = new LogInModel(_tcApi);
     _homeModel           = new HomeModel(_tcApi);
     _userPreference      = new UserPreference(_tcApi);
     _settingsModel       = new SettingsModel();
     _createUserModel     = new CreateUserModel(_tcApi);
     _createCaseModel     = new CreateCaseModel(_tcApi);
     _caseModel           = new CaseModel(_tcApi);
     _changePasswordModel = new ChangePasswordModel(_tcApi);
     _mapModel            = new MapModel(_tcApi);
     _trafficLightModel   = new TrafficLightOverviewModel(_tcApi);
 }
Ejemplo n.º 2
0
 public void Init()
 {
     _fakeView  = Substitute.For <ICreateUserView>();
     _fakeModel = Substitute.For <ICreateUserModel>();
     _uut       = new CreateUserPresenter(_fakeView, _fakeModel);
 }
Ejemplo n.º 3
0
 public CreateUserPresenter(ICreateUserView view, ICreateUserModel model)
 {
     _view  = view;
     _model = model;
 }