public void DeleteTeamTest() { //Arrange var newteam = _listViewModel.AddTeam("DeleteTeamTest"); //Act _listViewModel.DeleteTeam(newteam); //Assert new DataSeedService <Team>(new TestClient()).GetItem(newteam).Should().BeNull(); }
private void fjernTeam_Click(object sender, RoutedEventArgs e) { TeamListViewModel.DeleteTeam(this, Window.GetWindow(this) as MainWindow); }