public override UserAccount Execute() { var userAccount = new UserAccount(_user, BalanceRange.GetValue(), SalaryRange.GetValue(), SpentRange.GetValue(), MoodRange.GetValue()); return(userAccount); }
public SessionViewModel(IShellProvider shellProvider, ISessionRegister sessionRegister, IOptions <BalanceRange> balanceRangeOptions) { _shellProvider = shellProvider; _sessionRegister = sessionRegister; _balanceRange = balanceRangeOptions.Value; Balance = _balanceRange.Start; }
public CallsDueReport LoadCustomerWatchReportForAllClients(PeriodReportType reportType, BalanceRange balanceRange, FacilityType facilityType, bool isSalvageIncluded, string orderByString) { ArgumentChecker.ThrowIfNull(facilityType, "facilityType"); ArgumentChecker.ThrowIfNull(balanceRange, "balanceRange"); return(repository.LoadCustomerWatchReportForAllClients(reportType, balanceRange, facilityType, isSalvageIncluded, orderByString)); }
public ClientActionReport LoadClientActionReportForAllClients(BalanceRange balanceRange, FacilityType facilityType, bool isSalvageIncluded, string orderByString) { ArgumentChecker.ThrowIfNull(facilityType, "facilityType"); ArgumentChecker.ThrowIfNull(balanceRange, "balanceRange"); return(repository.LoadClientActionReportForAllClients(balanceRange, facilityType, isSalvageIncluded, orderByString)); }
public CallsDueReport LoadCallsDueReport(int clientId, PeriodReportType reportType, BalanceRange balanceRange, string orderByString) { ArgumentChecker.ThrowIfNull(balanceRange, "balanceRange"); return(repository.LoadCallsDueReport(clientId, reportType, balanceRange, orderByString)); }
public IsDecimalValidationRule() { _balanceRange = ConfigurationFactory.GetConfiguration().GetRegisterSettings <BalanceRange>(); }