예제 #1
0
        public ApiResult <IEnumerable <string> > GetViewConfigurations()
        {
            var cmd = new GetViewInputConfigurations(inputConfigProvider);

            cmd.Execute();
            return(cmd.Result);
        }
예제 #2
0
        public void Executes()
        {
            cmd.Execute();
            var result = cmd.Result;

            Assert.IsNotNull(result);
            Assert.IsNotNull(result.Content);
            Assert.IsTrue(result.Success);
            Assert.IsInstanceOf <IEnumerable <string> >(result.Content);
            Assert.AreEqual(1, result.Content.Count());
            Assert.AreEqual("test2", result.Content.First());
            inputConfigProviderMock.Verify(i => i.Configs, Times.Once);
        }
예제 #3
0
 public ApiResult<IEnumerable<string>> GetViewConfigurations()
 {
     var cmd = new GetViewInputConfigurations(inputConfigProvider);
     cmd.Execute();
     return cmd.Result;
 }