示例#1
0
        public void DeleteTeamTest()
        {
            //Arrange
            var newteam = _listViewModel.AddTeam("DeleteTeamTest");

            //Act
            _listViewModel.DeleteTeam(newteam);

            //Assert
            new DataSeedService <Team>(new TestClient()).GetItem(newteam).Should().BeNull();
        }
示例#2
0
 private void fjernTeam_Click(object sender, RoutedEventArgs e)
 {
     TeamListViewModel.DeleteTeam(this, Window.GetWindow(this) as MainWindow);
 }