public void ClienteDeveSerConfiguradoParaHomologacaoQuandoOConstrutorReceberSomenteOToken() { //Arrange var token = Guid.NewGuid().ToString(); //Act var sut = new MonitriipClient(token); //Assert sut.BaseAddress.Should().Be(URL_HOMOLOGACAO); sut.Timeout.Should().Be(new TimeSpan(0, 0, 3)); }
public void QuandoOClienteReceberAUrlOTokenEoTimeoutMenorOuIgualAZeroOTimeoutDeveSerDe3Segundos(int timeout) { //Arrange var token = Guid.NewGuid().ToString(); var minhaUrl = "http://minhaurl.com.br"; //Act var sut = new MonitriipClient(timeout, minhaUrl, token); //Assert sut.BaseAddress.Should().Be(minhaUrl, token); sut.Timeout.Should().Be(new TimeSpan(0, 0, 3)); }
public void ClienteDeveSerConfiguradoQuandoOConstrutorReceberAUrlEOToken() { //Arrange var token = Guid.NewGuid().ToString(); var minhaUrl = "http://minhaurl.com.br"; //Act var sut = new MonitriipClient(minhaUrl, token); //Assert sut.BaseAddress.Should().Be(minhaUrl, token); sut.Timeout.Should().Be(new TimeSpan(0, 0, 3)); }