Exemple #1
0
        public ApiResult <IEnumerable <string> > GetAllScripts()
        {
            var cmd = new GetAllScripts(scriptProvider);

            cmd.Execute();
            return(cmd.Result);
        }
 public void Setup()
 {
     scriptProviderMock = new Mock<IScriptProvider>();
     scriptProviderMock.Setup(s => s.Scripts).Returns(new List<InputScript>
     {
         new InputScript { FileName = "test.js"},
         new InputScript {FileName = "test2.js"}
     });
     scriptProvider = scriptProviderMock.Object;
     cmd = new GetAllScripts(scriptProvider);
 }
 public void Setup()
 {
     scriptProviderMock = new Mock <IScriptProvider>();
     scriptProviderMock.Setup(s => s.Scripts).Returns(new List <InputScript>
     {
         new InputScript {
             FileName = "test.js"
         },
         new InputScript {
             FileName = "test2.js"
         }
     });
     scriptProvider = scriptProviderMock.Object;
     cmd            = new GetAllScripts(scriptProvider);
 }
 public ApiResult<IEnumerable<string>> GetAllScripts()
 {
     var cmd = new GetAllScripts(scriptProvider);
     cmd.Execute();
     return cmd.Result;
 }