Exemple #1
0
        public void Scan_HappyFlow_RaisesPropertyChangedOnAccountNumbers()
        {
            var    viewModel    = new ScanViewModel();
            string propertyName = null;

            viewModel.PropertyChanged += (s, e) => { propertyName = e.PropertyName; };
            viewModel.Scan(Resources.FileWith1Entries);

            Assert.IsNotNull(propertyName);
            Assert.That(propertyName, Is.EqualTo("AccountNumbers"));
        }
 public void WhenIScanTheEntry()
 {
     scanViewModel.Scan(ScenarioContext.Current.Get <string>("file"));
 }