public ApiResult <InputConfiguration> GetConfiguration(string name) { var cmd = new GetInputConfiguration(inputConfigProvider, name); cmd.Execute(); return(cmd.Result); }
public void DoesNotFindConfigIfItsNotPresent() { cmd = new GetInputConfiguration(inputConfigProvider, configNameNotFound); cmd.Execute(); var result = cmd.Result; Assert.IsNotNull(result); Assert.IsNotNull(result.Success); Assert.AreEqual(false, result.Success); inputConfigProviderMock.Verify(i => i.FindConfigForName(It.IsAny<string>()), Times.Once); }
public void DoesNotFindConfigIfItsNotPresent() { cmd = new GetInputConfiguration(inputConfigProvider, configNameNotFound); cmd.Execute(); var result = cmd.Result; Assert.IsNotNull(result); Assert.IsNotNull(result.Success); Assert.AreEqual(false, result.Success); inputConfigProviderMock.Verify(i => i.FindConfigForName(It.IsAny <string>()), Times.Once); }
public void FindsConfigIfItsPresent() { cmd = new GetInputConfiguration(inputConfigProvider, configNameFound); cmd.Execute(); var result = cmd.Result; Assert.IsNotNull(result); Assert.IsNotNull(result.Success); Assert.AreEqual(true, result.Success); Assert.IsInstanceOf<InputConfiguration>(result.Content); inputConfigProviderMock.Verify(i => i.FindConfigForName(It.IsAny<string>()), Times.Once); }
public void FindsConfigIfItsPresent() { cmd = new GetInputConfiguration(inputConfigProvider, configNameFound); cmd.Execute(); var result = cmd.Result; Assert.IsNotNull(result); Assert.IsNotNull(result.Success); Assert.AreEqual(true, result.Success); Assert.IsInstanceOf <InputConfiguration>(result.Content); inputConfigProviderMock.Verify(i => i.FindConfigForName(It.IsAny <string>()), Times.Once); }
public ApiResult<InputConfiguration> GetConfiguration(string name) { var cmd = new GetInputConfiguration(inputConfigProvider, name); cmd.Execute(); return cmd.Result; }