private void Save_Click(object sender, RoutedEventArgs e) { var pkg = _package; pkg.Name = package.PackageName; pkg.Description = package.PackageDescription; _controller.EditPackage(pkg); _router.GoTo(new PackageIndexRoute()); }
public void EditPackage_CallsCommandDispatcher() { _controller.EditPackage(_package); _controllerMockBundle.MockCommandDispatcher.Received().Submit(Arg.Any <EditPackageCommand>()); }