public void GetProjectWithIdReturnsStatusCode(string statusCode) { int actual; using (var service = new GitLabService(Token)) { actual = (int)(service.GetProject(ScenarioContext.Current["ProjectId"] as string).StatusCode); } Assert.That(actual.ToString(), Is.EqualTo(statusCode)); }
public void ProjectHasValues(string status, Table table) { var expected = table.CreateInstance <Project>(); ProjectResponse actual; using (var service = new GitLabService(Token)) { var projectId = ScenarioContext.Current["ProjectId"] as string; actual = service.GetProject(projectId); } // Rework later to "Not null field" expression or something else Assert.That(expected.Name, Is.EqualTo(actual.Name)); Assert.That(expected.Description, Is.EqualTo(actual.Description)); }