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