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

            cmd.Execute();
            return(cmd.Result);
        }
示例#2
0
        public void Test()
        {
            cmd.Execute();
            scriptProviderMock.Verify(s => s.Scripts, Times.Once);

            Assert.IsNotNull(cmd);
            Assert.IsNotNull(cmd.Result);
            Assert.IsInstanceOf <ApiResult <IEnumerable <string> > >(cmd.Result);
            Assert.IsInstanceOf <List <string> >(cmd.Result.Content.ToList());
            Assert.AreEqual(2, cmd.Result.Content.Count());
        }
示例#3
0
 public ApiResult<IEnumerable<string>> GetAllScripts()
 {
     var cmd = new GetAllScripts(scriptProvider);
     cmd.Execute();
     return cmd.Result;
 }