public void Setup() { reco = new Reco() { ItemTitle = "Test" }; var newRecos = new ObservableCollection <Reco>() { new Reco(), reco, new Reco(), new Reco() }; var oldRecos = new ObservableCollection <Reco>() { new Reco(), new Reco(), new Reco(), new Reco() }; var random = new Random(); var mined = new Mined() { LastRetrieve = DateTimeOffset.Now.AddDays(random.Next(-100, 100)), AcceptTime = DateTimeOffset.Now.AddDays(random.Next(-100, 100)), NewRecos = newRecos, OldRecos = oldRecos }; viewModel = new NewsViewModel() { Data = new Data() { Mined = mined } }; }
private void DoMined() { var eventArgs = new EventArgs(); Mined?.Invoke(this, eventArgs); }