public void GetOneFilterSucess() { #region Parameters FiltersBDSteps.ClearAllFilters(); FiltersBDSteps.InsertFilter(); List <string> dataFilters = FiltersBDSteps.SearchOneFilter(); string filter_id = dataFilters[0]; string filter_name = dataFilters[1]; //Expected Result string statusCodeExpected = "OK"; string filterName = "REQ"; #endregion oneFilter = new GET_OneFilterRequest(filter_id); response = oneFilter.ExecuteRequest(); Assert.Multiple(() => { Assert.AreEqual(statusCodeExpected, response.StatusCode.ToString()); Assert.AreEqual(filter_id, response.Data["filters"][0]["id"].ToString()); Assert.AreEqual(filterName, response.Data["filters"][0]["name"].ToString()); }); }
public void GetOneFilterNonExistent() { #region Parameters string filter_id = "9999"; //Expected Result string statusCodeExpected = "OK"; string content = "{\"filters\":[]}"; #endregion #region Request oneFilter = new GET_OneFilterRequest(filter_id); response = oneFilter.ExecuteRequest(); #endregion #region Assert Assert.Multiple(() => { Assert.AreEqual(statusCodeExpected, response.StatusCode.ToString()); Assert.AreEqual(content, response.Content.ToString()); }); #endregion }