/// <summary>Initializes a new instance of the QueryToolViewModel class.</summary>
 public QueryToolViewModel(IQueryService service)
 {
     _service = service;
     RunQuery = new SimpleCommand(ExecuteSelectQuery, IsQueryAvailable);
 }
 public void BeforeEachTest()
 {
     Target = new SimpleCommand(DoNothing);
 }
            public void Returns_False_When_Passed_In_Func_Returns_False()
            {
                Target = new SimpleCommand(DoNothing, () => { return false; });

                Assert.IsFalse(Target.CanExecute(null));
            }
            public void Executes_Passed_In_Action()
            {
                bool wasCalled = false;
                Target = new SimpleCommand(() => { wasCalled = true; });
                Target.Execute(null);

                Assert.IsTrue(wasCalled);
            }