public ApiResult <IEnumerable <string> > GetLegacyConfigurations() { var cmd = new GetLegacyInputConfigurations(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(2, result.Content.Count()); Assert.AreEqual("test1", result.Content.First()); Assert.AreEqual("test3", result.Content.Last()); inputConfigProviderMock.Verify(i => i.Configs, Times.Once); }
public ApiResult<IEnumerable<string>> GetLegacyConfigurations() { var cmd = new GetLegacyInputConfigurations(inputConfigProvider); cmd.Execute(); return cmd.Result; }