public GatherMemberInfoPresenter(ITempDataRepository tempDataRepository, IGatherMemberInfoView gatherMemberInfoView) { _tempDataRepository = tempDataRepository; _gatherMemberInfoView = gatherMemberInfoView; _gatherMemberInfoView.GatherMemberInfo += new EventHandler(_gatherMemberInfoView_GatherMemberInfo); }
public GatherMemberInfoPresenter(ITempDataRepository tempDataRepository, IGatherMemberInfoView gatherMemberInfoView) { _tempDataRepository = tempDataRepository; _gatherMemberInfoView = gatherMemberInfoView; _gatherMemberInfoView.GatherMemberInfo += new EventHandler(_gatherMemberInfoView_GatherMemberInfo); }
public void SetUp() { _tempDataRepository = new FakeTempDataRepository(); _gatherMemberInfoView = new FakeGatherMemberInfoView(); _nationalFitnessGateway = new FakeNationalFitnessGateway(); _ccProcessingGateway = new FakeCCProcessingGateway(); _memberRepository = new FakeMemberRepository(); _renewMembershipView = new FakeRenewMembershipView(); }
public void SetUp() { _mockRepository = new MockRepository(); _tempDataRepository = _mockRepository.StrictMock <ITempDataRepository>(); _nationalFitnessGateway = _mockRepository.StrictMock <INationalFitnessGateway>(); _ccProcessingGateway = _mockRepository.StrictMock <ICCProcessingGateway>(); _memberRepository = _mockRepository.StrictMock <IMemberRepository>(); _renewMembershipView = _mockRepository.StrictMock <IRenewMembershipView>(); }
public void SetUp() { _tempDataRepository = new FakeTempDataRepository(); _gatherMemberInfoView = new FakeGatherMemberInfoView(); _nationalFitnessGateway = new FakeNationalFitnessGateway(); _ccProcessingGateway = new FakeCCProcessingGateway(); _memberRepository = new FakeMemberRepository(); _renewMembershipView = new FakeRenewMembershipView(); }
public SrvIcoLkkSoldCounter(ITempDataRepository tempDataRepository, ISrvBlockchainReader srvBlockchainReader, CachedDataDictionary <string, IAsset> assetsDictionary, ILkkSourceWalletsRepository lkkSourceWalletsRepository, IAppGlobalSettingsRepositry appGlobalSettingsRepositry) { _tempDataRepository = tempDataRepository; _srvBlockchainReader = srvBlockchainReader; _assetsDictionary = assetsDictionary; _lkkSourceWalletsRepository = lkkSourceWalletsRepository; _appGlobalSettingsRepositry = appGlobalSettingsRepositry; }
public RenewMembershipPresenter(ITempDataRepository tempDataRepository, INationalFitnessGateway nationalFitnessGateway, ICCProcessingGateway ccProcessingGateway, IMemberRepository memberRepository, IRenewMembershipView renewMembershipView) { _tempDataRepository = tempDataRepository; _nationalFitnessGateway = nationalFitnessGateway; _ccProcessingGateway = ccProcessingGateway; _memberRepository = memberRepository; _renewMembershipView = renewMembershipView; _renewMembershipView.Initialize += new EventHandler(_renewMembershipView_Initialize); _renewMembershipView.RenewMembership += new EventHandler(_renewMembershipView_RenewMembership); }
public RenewMembershipPresenter(ITempDataRepository tempDataRepository, INationalFitnessGateway nationalFitnessGateway, ICCProcessingGateway ccProcessingGateway, IMemberRepository memberRepository, IRenewMembershipView renewMembershipView) { _tempDataRepository = tempDataRepository; _nationalFitnessGateway = nationalFitnessGateway; _ccProcessingGateway = ccProcessingGateway; _memberRepository = memberRepository; _renewMembershipView = renewMembershipView; _renewMembershipView.Initialize += new EventHandler(_renewMembershipView_Initialize); _renewMembershipView.RenewMembership += new EventHandler(_renewMembershipView_RenewMembership); }
public static async Task <bool> ShouldShowBackupWarning(this ITempDataRepository repo, string clientId, int timeoutInMinutes) { var lastWarningDt = (await repo.RetrieveData <BackupWarningTimeoutData>(clientId))?.LastWarningDt; if (lastWarningDt == null || DateTime.UtcNow - lastWarningDt > TimeSpan.FromMinutes(timeoutInMinutes)) { await repo.InsertOrReplaceDataAsync(new BackupWarningTimeoutData { LastWarningDt = DateTime.UtcNow }, clientId); return(true); } return(false); }
public void SetUp() { _mockRepository = new MockRepository(); _tempDataRepository = _mockRepository.StrictMock<ITempDataRepository>(); _gatherMemberInfoView = _mockRepository.StrictMock<IGatherMemberInfoView>(); }
public void SetUp() { _mockRepository = new MockRepository(); _tempDataRepository = _mockRepository.StrictMock <ITempDataRepository>(); _gatherMemberInfoView = _mockRepository.StrictMock <IGatherMemberInfoView>(); }