public ApiResult <IEnumerable <string> > GetAllScripts() { var cmd = new GetAllScripts(scriptProvider); cmd.Execute(); return(cmd.Result); }
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()); }
public ApiResult<IEnumerable<string>> GetAllScripts() { var cmd = new GetAllScripts(scriptProvider); cmd.Execute(); return cmd.Result; }