public async Task Delete_ByIdTransactionType_Valido() { Guid id = new Guid("5E210F4F-D12B-4F85-8464-6F8740920FAA"); var service = new TransactionTypeService(_httpClient); var result = await service.DeleteByIdTransactionType(requestUri, id); // Assert if (result.Status == HttpStatusCode.OK) { Assert.True(result.Status == HttpStatusCode.OK, "OK"); } else { List <string> listError = new List <string>(); foreach (string error in result.Data) { listError.Add(error); } Assert.Collection(listError, item => Assert.Equal("The Guid is empty", item), item => Assert.Equal("The Guid is invalid and contains 00000000", item), item => Assert.Equal("Registro não encontrado", item) ); } }