public void Test_AcessarUrlComAutenticacaoBasicaComSucesso() { #region Parameters AuthenticationRequest authenticationRequest; string statusEsperado = "OK"; //Resultado esperado string FaultId = "OPERATION_SUCCESS"; string Fault = "Operation completed successfully"; #endregion #region Acoes authenticationRequest = new AuthenticationRequest(); authenticationRequest.AddAuthentication(); IRestResponse <dynamic> response = authenticationRequest.ExecuteRequest(); #endregion #region Asserts Assert.Multiple(() => { Assert.AreEqual(statusEsperado, response.StatusCode.ToString()); Assert.AreEqual(FaultId, response.Data.FaultId.ToString()); Assert.AreEqual(Fault, response.Data.Fault.ToString()); }); /* * { * "FaultId": "OPERATION_SUCCESS", * "Fault": "Operation completed successfully", * "Username:Password": "******", * "Authentication Type": "Basic" * } */ #endregion }