Skip to content

Commit 4f3db74

Browse files
authored
Merge pull request #8 from amadeus4dev/integration-tests
First stable version of the Amadeus for Developers Dotnet SDK
2 parents 3a42602 + e8c1f2e commit 4f3db74

File tree

16 files changed

+340
-28
lines changed

16 files changed

+340
-28
lines changed

.github/CODE_OF_CONDUCT.md

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
# Contributor Covenant Code of Conduct
2+
3+
## Our Pledge
4+
5+
In the interest of fostering an open and welcoming environment, we as
6+
contributors and maintainers pledge to making participation in our project and
7+
our community a harassment-free experience for everyone, regardless of age, body
8+
size, disability, ethnicity, gender identity and expression, level of experience,
9+
nationality, personal appearance, race, religion, or sexual identity and
10+
orientation.
11+
12+
## Our Standards
13+
14+
Examples of behavior that contributes to creating a positive environment
15+
include:
16+
17+
* Using welcoming and inclusive language
18+
* Being respectful of differing viewpoints and experiences
19+
* Gracefully accepting constructive criticism
20+
* Focusing on what is best for the community
21+
* Showing empathy towards other community members
22+
23+
Examples of unacceptable behavior by participants include:
24+
25+
* The use of sexualized language or imagery and unwelcome sexual attention or
26+
advances
27+
* Trolling, insulting/derogatory comments, and personal or political attacks
28+
* Public or private harassment
29+
* Publishing others' private information, such as a physical or electronic
30+
address, without explicit permission
31+
* Other conduct which could reasonably be considered inappropriate in a
32+
professional setting
33+
34+
## Our Responsibilities
35+
36+
Project maintainers are responsible for clarifying the standards of acceptable
37+
behavior and are expected to take appropriate and fair corrective action in
38+
response to any instances of unacceptable behavior.
39+
40+
Project maintainers have the right and responsibility to remove, edit, or
41+
reject comments, commits, code, wiki edits, issues, and other contributions
42+
that are not aligned to this Code of Conduct, or to ban temporarily or
43+
permanently any contributor for other behaviors that they deem inappropriate,
44+
threatening, offensive, or harmful.
45+
46+
## Scope
47+
48+
This Code of Conduct applies both within project spaces and in public spaces
49+
when an individual is representing the project or its community. Examples of
50+
representing a project or community include using an official project e-mail
51+
address, posting via an official social media account, or acting as an appointed
52+
representative at an online or offline event. Representation of a project may be
53+
further defined and clarified by project maintainers.
54+
55+
## Enforcement
56+
57+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
58+
reported by contacting the project team at [email protected]. All
59+
complaints will be reviewed and investigated and will result in a response that
60+
is deemed necessary and appropriate to the circumstances. The project team is
61+
obligated to maintain confidentiality with regard to the reporter of an incident.
62+
Further details of specific enforcement policies may be posted separately.
63+
64+
Project maintainers who do not follow or enforce the Code of Conduct in good
65+
faith may face temporary or permanent repercussions as determined by other
66+
members of the project's leadership.
67+
68+
## Attribution
69+
70+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71+
available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html
72+
73+
[homepage]: https://www.contributor-covenant.org
74+

.github/CONTRIBUTING.md

Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
## Development and Testing
2+
3+
To run the project locally, clone the repository.
4+
5+
```
6+
git clone https://github.com/amadeus4dev/amadeus-dotnet.git
7+
cd amadeus-java
8+
```
9+
Download and install visual studio.
10+
11+
Install workloads dependencies.
12+
13+
```
14+
.NET desktop development
15+
Universal Windows Platform development
16+
```
17+
18+
Open project/solution
19+
20+
Install Other dependencies.
21+
22+
```
23+
xunit (Project: amadeus-integration-test)
24+
xunit.runner.visualstudio (Project: amadeus-integration-test)
25+
coverlet.collector (Project: amadeus-integration-test)
26+
Microsoft.AspNetCore.TestHost (Project: amadeus-integration-test)
27+
Microsoft.NET.Test.Sdk (Project: amadeus-integration-test)
28+
System.Runtime.CompilerServices.Unsafe (Project: amadeus-test)
29+
System.Threading.Tasks.Extensions (Project: amadeus-test)
30+
NunitTestAdapter (Project: amadeus-test)
31+
Nunit (Project: amadeus-test)
32+
Castle.Core (Project: amadeus-test)
33+
Moq (Project: amadeus-test)
34+
```
35+
36+
### Running tests
37+
38+
Open Test Explorer.
39+
40+
Click Run All Tests option.
41+
42+
43+
### Building
44+
45+
Open Solution Explorer right click on the project Amadeus and select build.
46+
47+
### Releasing
48+
49+
To make a new release, follow the following steps:
50+
51+
- [ ] Update the `CHANGELOG.md` with the new version
52+
- [ ] Tag your release in git using `git --tag vX.X.X`
53+
- [ ] Push the new tag `git push --tags`
54+
- [ ] Update the [Releases](https://github.com/amadeus4dev/amadeus-dotnet/releases) tab on GitHub with a new release for the tag, copying the description from the `CHANGELOG.md`
55+
56+
## How to contribute to the Amadeus Dotnet SDK
57+
58+
#### **Did you find a bug?**
59+
60+
* **Ensure the bug was not already reported** by searching on GitHub under [Issues](https://github.com/amadeus4dev/amadeus-dotnet/issues).
61+
62+
* If you're unable to find an open issue addressing the problem, [open a new one](https://github.com/amadeus4dev/amadeus-dotnet/issues/new). Be sure to include a **title and clear description**, as much relevant information as possible, and a **code sample** or an **executable test case** demonstrating the expected behavior that is not occurring.
63+
64+
#### **Did you write a patch that fixes a bug?**
65+
66+
* Open a new GitHub pull request with the patch.
67+
68+
* Ensure the PR description clearly describes the problem and solution. Include the relevant issue number if applicable.
69+
70+
#### **Do you intend to add a new feature or change an existing one?**
71+
72+
* Suggest your change [in a new issue](https://github.com/amadeus4dev/amadeus-dotnet/issues/new) and start writing code.
73+
74+
* Make sure your new code does not break any tests and include new tests.
75+
76+
* With good code comes good documentation. Try to copy the existing documentation and adapt it to your needs.
77+
78+
* Close the issue or mark it as inactive if you decide to discontinue working on the code.
79+
80+
#### **Do you have questions about the source code?**
81+
82+
* Ask any question about how to use the library by [raising a new issue](https://github.com/amadeus4dev/amadeus-dotnet/issues/new).

.github/ISSUE_TEMPLATE.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
## Description
2+
3+
[Describe the issue]
4+
5+
## Steps to Reproduce
6+
7+
1. [First step]
8+
2. [Second step]
9+
3. [and so on...]
10+
11+
__Expected Behavior:__ [What you expect to happen]
12+
13+
__Actual Behavior:__ [What actually happens]
14+
15+
__Stable Behavior?__ [What percentage of the time does it reproduce?]
16+
17+
## Versions
18+
19+
What version of .dotnet framework are you running? What Operating System are you on?
20+
21+
## Checklist
22+
23+
Please make sure you checked the following:
24+
25+
* Which version of .dotnet framework are you using?
26+
* Did you download the latest version of this package?

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
Fixes #
2+
3+
## Changes for this pull request
4+
5+
## Checklist
6+
7+
Remove this if you have done all of these:
8+
9+
* Ensure all tests pass
10+
* Add any changes to the README
11+
* Add any changes or new comments to SDK methods
12+
* Ensure this PR only changes what it is intended to change

.github/SUPPORT.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Amadeus Support
2+
3+
Our [developer support team](https://developer.amadeus.com/developers) is here to help you. You can find us on [Twitter](#), [StackOverflow](#), and [email](#).

.github/images/dependencies.svg

Lines changed: 1 addition & 0 deletions
Loading

.github/images/support.svg

Lines changed: 1 addition & 0 deletions
Loading

.travis.yml

Lines changed: 0 additions & 7 deletions
This file was deleted.

README.md

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,11 @@
1-
| :warning: WARNING: **This SDK is still Work in Progress**: Be very careful here |
2-
| --- |
1+
# Amadeus Dotnet SDK
32

4-
# Amadeus C# SDK
5-
6-
[![Build Status](https://travis-ci.org/amadeus4dev/amadeus-csharp.svg?branch=master)][travis]
7-
[![Contact Support](https://github.com/amadeus4dev/amadeus-csharp/raw/master/.github/images/support.svg?sanitize=true)][support]
3+
[![Contact Support](https://github.com/amadeus4dev/amadeus-dotnet/raw/master/.github/images/support.svg?sanitize=true)][support]
84

95
Amadeus provides a set of APIs for the travel industry. Flights, Hotels, Locations and more.
106

117
For more details see the [C#
12-
documentation](https://amadeus4dev.github.io/amadeus-csharp/) on
8+
documentation](https://amadeus4dev.github.io/amadeus-dotnet/) on
139
[Amadeus.com](https://developers.amadeus.com).
1410

1511
## Installation
@@ -307,5 +303,4 @@ to help you. You can find us on
307303
[StackOverflow](https://stackoverflow.com/questions/tagged/amadeus) and
308304
[email](mailto:[email protected]).
309305

310-
[travis]: http://travis-ci.org/amadeus4dev/amadeus-csharp
311306
[support]: http://developers.amadeus.com/support

amadeus-csharp.sln

Lines changed: 24 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,21 @@
11

22
Microsoft Visual Studio Solution File, Format Version 12.00
3-
# Visual Studio 15
4-
VisualStudioVersion = 15.0.26124.0
3+
# Visual Studio Version 17
4+
VisualStudioVersion = 17.0.31919.166
55
MinimumVisualStudioVersion = 15.0.26124.0
6-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "amadeus", "amadeus\amadeus.csproj", "{09912E64-48D0-4F16-9FCF-EBA520592BBA}"
6+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "amadeus", "amadeus\amadeus.csproj", "{09912E64-48D0-4F16-9FCF-EBA520592BBA}"
77
EndProject
88
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "amadeus-test", "amadeus-test\amadeus-test.csproj", "{7D111631-5904-4C7C-A1E4-03B1E9558880}"
99
EndProject
10-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "sample", "sample\sample.csproj", "{D6E96E62-2ECB-4B57-8859-F4AD731D9657}"
10+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "sample", "sample\sample.csproj", "{D6E96E62-2ECB-4B57-8859-F4AD731D9657}"
1111
EndProject
1212
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{85623C07-D863-4656-A8D2-D235513A1B67}"
1313
ProjectSection(SolutionItems) = preProject
1414
.travis.yml = .travis.yml
1515
EndProjectSection
1616
EndProject
17+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "amadeus-integration-test", "amadeus-integration-test\amadeus-integration-test.csproj", "{923C0D46-BA02-48CE-8598-31D9AC205D9D}"
18+
EndProject
1719
Global
1820
GlobalSection(SolutionConfigurationPlatforms) = preSolution
1921
Debug|Any CPU = Debug|Any CPU
@@ -23,9 +25,6 @@ Global
2325
Release|x64 = Release|x64
2426
Release|x86 = Release|x86
2527
EndGlobalSection
26-
GlobalSection(SolutionProperties) = preSolution
27-
HideSolutionNode = FALSE
28-
EndGlobalSection
2928
GlobalSection(ProjectConfigurationPlatforms) = postSolution
3029
{09912E64-48D0-4F16-9FCF-EBA520592BBA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
3130
{09912E64-48D0-4F16-9FCF-EBA520592BBA}.Debug|Any CPU.Build.0 = Debug|Any CPU
@@ -63,5 +62,23 @@ Global
6362
{D6E96E62-2ECB-4B57-8859-F4AD731D9657}.Release|x64.Build.0 = Release|Any CPU
6463
{D6E96E62-2ECB-4B57-8859-F4AD731D9657}.Release|x86.ActiveCfg = Release|Any CPU
6564
{D6E96E62-2ECB-4B57-8859-F4AD731D9657}.Release|x86.Build.0 = Release|Any CPU
65+
{923C0D46-BA02-48CE-8598-31D9AC205D9D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
66+
{923C0D46-BA02-48CE-8598-31D9AC205D9D}.Debug|Any CPU.Build.0 = Debug|Any CPU
67+
{923C0D46-BA02-48CE-8598-31D9AC205D9D}.Debug|x64.ActiveCfg = Debug|Any CPU
68+
{923C0D46-BA02-48CE-8598-31D9AC205D9D}.Debug|x64.Build.0 = Debug|Any CPU
69+
{923C0D46-BA02-48CE-8598-31D9AC205D9D}.Debug|x86.ActiveCfg = Debug|Any CPU
70+
{923C0D46-BA02-48CE-8598-31D9AC205D9D}.Debug|x86.Build.0 = Debug|Any CPU
71+
{923C0D46-BA02-48CE-8598-31D9AC205D9D}.Release|Any CPU.ActiveCfg = Release|Any CPU
72+
{923C0D46-BA02-48CE-8598-31D9AC205D9D}.Release|Any CPU.Build.0 = Release|Any CPU
73+
{923C0D46-BA02-48CE-8598-31D9AC205D9D}.Release|x64.ActiveCfg = Release|Any CPU
74+
{923C0D46-BA02-48CE-8598-31D9AC205D9D}.Release|x64.Build.0 = Release|Any CPU
75+
{923C0D46-BA02-48CE-8598-31D9AC205D9D}.Release|x86.ActiveCfg = Release|Any CPU
76+
{923C0D46-BA02-48CE-8598-31D9AC205D9D}.Release|x86.Build.0 = Release|Any CPU
77+
EndGlobalSection
78+
GlobalSection(SolutionProperties) = preSolution
79+
HideSolutionNode = FALSE
80+
EndGlobalSection
81+
GlobalSection(ExtensibilityGlobals) = postSolution
82+
SolutionGuid = {F60A6870-77DD-4B67-BBAD-45A0A50F9480}
6683
EndGlobalSection
6784
EndGlobal

0 commit comments

Comments
 (0)