public void can_not_add_resource_when_json_invalid()
        {
            // ARRANGE
            var viewModel = new ModifyResourceViewModel(_metadata, _restClient.Object, SchedulerService);

            TestScheduler.AdvanceBy(TimeSpan.FromMilliseconds(100));

            viewModel.Json = "{";

            // ACT
            var result = viewModel.ConfirmCommand.CanExecute(null);

            TestScheduler.AdvanceBy(TimeSpan.FromMilliseconds(100));

            // ASSERT
            Assert.That(result, Is.False);
        }
        public void modifies_resource_when_confirmed()
        {
            // ARRANGE
            var viewModel = new ModifyResourceViewModel(_metadata, _restClient.Object, SchedulerService);

            viewModel.Confirmed.Subscribe();

            TestScheduler.AdvanceBy(TimeSpan.FromMilliseconds(100));

            viewModel.Json = "{}";

            // ACT
            viewModel.ConfirmCommand.Execute(null);

            TestScheduler.AdvanceBy(TimeSpan.FromMilliseconds(100));

            // ASSERT
            _restClient.VerifyAll();
        }