public void ApplyParameters_CalledOnNonNull_WithNonNullInvalidParams_ThrowsCorrectException(
            List <NavigationParameterModel> parameters)
        {
            IViewModelBase viewModel = new ViewModelStub();

            Assert.ThrowsAny <Exception>(() => viewModel.ApplyParameters(parameters));
        }
        public void ApplyParameters_CalledOnNonNull_WithNonNullValidParams_SetsCorrectProperties()
        {
            var viewModel  = new ViewModelStub();
            var parameters = FluentNavigatorExtensionsTestsDataProvider.ValidNavigationParams;

            viewModel.ApplyParameters(parameters);

            Assert.Equal(FluentNavigatorExtensionsTestsDataProvider.PropertyValue1, viewModel.StringParameter);
            Assert.Equal(FluentNavigatorExtensionsTestsDataProvider.PropertyValue2, viewModel.IntParameter);
        }
        public void ApplyParameters_CalledOnNonNull_WithNullParams_ThrowsCorrectException()
        {
            IViewModelBase viewModel = new ViewModelStub();

            Assert.Throws <ArgumentNullException>(() => viewModel.ApplyParameters(null));
        }