I think your problem lies in your form constructor. you need to instantiate the viewmodel using the new syntax. It should be something like this:-
public testView(INavigationViewModel model, IEventAggregator eventaggricator)
{
InitializeComponent();
model viewModel = new model();
this.DataContext = viewModel;
this.eventaggricator = eventaggricator;
}
Hope this helps