public void GetTopSteadynessEmployees()
        {
            Init();

            // Arrange
            ObservableCollection <Employee> expectedEmployees = strongPlateService.GetTopSteadyness();


            // Act
            StrongPlateSteadynessViewModel  viewModel = GetViewModel();
            ObservableCollection <Employee> employees = viewModel.TopEmployees;

            // Assert
            Assert.Equal(expectedEmployees.Count, employees.Count);

            for (int i = 0; i < employees.Count; i++)
            {
                Assert.Equal(expectedEmployees.ElementAt(i).LastName, employees.ElementAt(i).LastName);
            }
        }
Esempio n. 2
0
 private void LoadData()
 {
     topEmployees     = new ObservableCollection <Employee>(strongPlateService.GetTopSteadyness());
     selectedEmployee = topEmployees.First();
 }
 private void OpenSteadynessView(object view)
 {
     Messenger.Default.Send <ObservableCollection <Employee> >(strongPlateService.GetTopSteadyness());
     frameNavigationService.NavigateToFrame(typeof(StrongPlateSteadynessView));
 }