protected void SetUp() { Log = new LogImpl(); Repo = new TestProfileRepository(); UseCase = new GetCurrentUserProfile(Log, Repo); Repo.Registry.Add(new Profile() { Id = ID }); }
protected void SetUp() { Log = new LogImpl(); Executor = new TestMainExecutor(); ProfileRepo = new TestProfileRepository(); GetCurrentUserProfile = new GetCurrentUserProfile(Log, ProfileRepo); Presenter = new ProfilePagePresenterImpl(Executor, Log, GetCurrentUserProfile); PresenterNavigation = new TestPresenterNavigation(); ProfileRepo.Registry.Add(SourceProfileInstance); }
public ProfilePagePresenterImpl(IMainThreadExecutor mainThreadExecutor, ILog log, GetCurrentUserProfile getCurrentUserProfile) { MainThreadExecutor = mainThreadExecutor; Log = log; GetCurrentUserProfile = getCurrentUserProfile; }