예제 #1
0
        public void ShouldNotValidateNegativeKeys()
        {
            Assert.Throws <BadRequestException>(() => _defaultClient.Post(-1, "test"));

            Fixture.MockLogger
            .VerifyNoErrorsWasLogged()
            .VerifyNoWarningsWasLogged();
        }
 public ApiClient PostValue(int id, string value)
 {
     CurrentState = _valuesServiceClient.Post(id, value);
     return(this);
 }