public void Should_Throw_When_FileNotFound()
        {
            var request = new BatchFile
            {
                FileName = string.Empty
            };

            var handler = new BatchFileMonitor(_processStarter);

            handler.Handle(request);
        }
        public void Should_Execute_BatchScript()
        {
            var request = new BatchFile
            {
                FileName = Path.Combine(_testContext.TestRunDirectory, "Out", "BatchScript.cmd")
            };

            var handler = new BatchFileMonitor(_processStarter);

            handler.Handle(request);

            Assert.AreSame(State.Ok, request.State);
        }