public void Setup()
 {
     Config = new AssetsConfigurationSourceMock {
         FirstRow = 2, MakeIndex = 3, ModelIndex = 2, InventoryNumberIndex = 3, UserIndex = 4, LocationIndex = 5
     };
     System.Text.Encoding.RegisterProvider(System.Text.CodePagesEncodingProvider.Instance);
 }
 private void Populate(IAssetSourceConfiguration config)
 {
     var jsonConfig = config.GetJsonObject();
     this.FirstRowIndex = jsonConfig.FirstRow;
     this.Make = jsonConfig.MakeColumn;
     this.Model = jsonConfig.ModelColumn;
     this.InventoryNumber = jsonConfig.InventoryNumberColumn;
     this.User = jsonConfig.UserColumn;
     this.Location = jsonConfig.LocationColumn;
 }
 public ConfigureDialogViewModel(IAssetSourceConfiguration configuration, IDialogService dialogService)
 {
     this._configuration = configuration;
     this._dialogService = dialogService;
     Populate(configuration);
 }
 public void Configure(IAssetSourceConfiguration Config)
 {
     this.configuration = Config;
 }