public StocktakeNewViewModel(
            IMvvmNavigator mvvmNavigator,
            IInitialSetupService initialSetupService
            )
        {
            this.MvvmNavigator       = mvvmNavigator;
            this.InitialSetupService = initialSetupService;

            continueCommand = new ContinueCommand(this);
            continueCommand.CanExecuteProperty = true;
        }
示例#2
0
 public SiteLookupService(ILogger <SiteLookupService> logger,
                          IConfigurationRoot config,
                          IMemoryCache memoryCache,
                          ISiteRepository siteRepository,
                          IInitialSetupService initialSetupService) : base(logger)
 {
     _memoryCache         = Require.IsNotNull(memoryCache, nameof(memoryCache));
     _config              = Require.IsNotNull(config, nameof(config));
     _siteRepository      = Require.IsNotNull(siteRepository, nameof(_siteRepository));
     _initialSetupService = Require.IsNotNull(initialSetupService,
                                              nameof(initialSetupService));
 }
示例#3
0
 public SiteLookupService(ILogger <SiteLookupService> logger,
                          GRA.Abstract.IDateTimeProvider dateTimeProvider,
                          IConfigurationRoot config,
                          IMemoryCache memoryCache,
                          ISiteRepository siteRepository,
                          ISiteSettingRepository siteSettingRepository,
                          IInitialSetupService initialSetupService) : base(logger, dateTimeProvider)
 {
     _memoryCache    = memoryCache ?? throw new ArgumentNullException(nameof(memoryCache));
     _config         = config ?? throw new ArgumentNullException(nameof(config));
     _siteRepository = siteRepository
                       ?? throw new ArgumentNullException(nameof(siteRepository));
     _siteSettingRepository = siteSettingRepository
                              ?? throw new ArgumentNullException(nameof(siteSettingRepository));
     _initialSetupService = initialSetupService
                            ?? throw new ArgumentNullException(nameof(initialSetupService));
 }
示例#4
0
 public SiteLookupService(ILogger <SiteLookupService> logger,
                          GRA.Abstract.IDateTimeProvider dateTimeProvider,
                          IConfiguration config,
                          IDistributedCache cache,
                          ISiteRepository siteRepository,
                          ISiteSettingRepository siteSettingRepository,
                          IUserRepository userRepository,
                          IInitialSetupService initialSetupService) : base(logger, dateTimeProvider)
 {
     _cache          = cache ?? throw new ArgumentNullException(nameof(cache));
     _config         = config ?? throw new ArgumentNullException(nameof(config));
     _siteRepository = siteRepository
                       ?? throw new ArgumentNullException(nameof(siteRepository));
     _siteSettingRepository = siteSettingRepository
                              ?? throw new ArgumentNullException(nameof(siteSettingRepository));
     _userRepository = userRepository
                       ?? throw new ArgumentNullException(nameof(userRepository));
     _initialSetupService = initialSetupService
                            ?? throw new ArgumentNullException(nameof(initialSetupService));
 }
示例#5
0
 public SiteLookupService(ILogger <SiteLookupService> logger,
                          IDateTimeProvider dateTimeProvider,
                          IConfiguration config,
                          IGraCache cache,
                          ISiteRepository siteRepository,
                          ISiteSettingRepository siteSettingRepository,
                          IUserRepository userRepository,
                          IHttpContextAccessor httpContextAccessor,
                          IInitialSetupService initialSetupService) : base(logger, dateTimeProvider)
 {
     _cache          = cache ?? throw new ArgumentNullException(nameof(cache));
     _config         = config ?? throw new ArgumentNullException(nameof(config));
     _siteRepository = siteRepository
                       ?? throw new ArgumentNullException(nameof(siteRepository));
     _siteSettingRepository = siteSettingRepository
                              ?? throw new ArgumentNullException(nameof(siteSettingRepository));
     _userRepository = userRepository
                       ?? throw new ArgumentNullException(nameof(userRepository));
     _httpContextAccessor = httpContextAccessor
                            ?? throw new ArgumentNullException(nameof(httpContextAccessor));
     _initialSetupService = initialSetupService
                            ?? throw new ArgumentNullException(nameof(initialSetupService));
 }