2017-05-12 10:18:12 -07:00
|
|
|
# csharp
|
|
|
|
|
Work In Progress
|
2017-07-25 17:16:34 +02:00
|
|
|
Currently only supported on Linux
|
|
|
|
|
|
|
|
|
|
[](https://travis-ci.org/kubernetes-client/csharp)
|
2017-06-06 23:02:14 -07:00
|
|
|
|
|
|
|
|
# Generating the client code
|
|
|
|
|
|
|
|
|
|
## Prerequisites
|
|
|
|
|
|
|
|
|
|
Check out the generator project into some other directory
|
|
|
|
|
(henceforth `$GEN_DIR`)
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
|
cd $GEN_DIR/..
|
|
|
|
|
git clone https://github.com/kubernetes-client/gen
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
Install the [`autorest` tool](https://github.com/azure/autorest):
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
|
npm install autorest
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
## Generating code
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
|
# Where REPO_DIR points to the root of the csharp repository
|
|
|
|
|
cd ${REPO_DIR}/csharp/src
|
|
|
|
|
${GEN_DIR}/openapi/csharp.sh generated csharp.settings
|
|
|
|
|
```
|
2017-06-22 22:41:42 +02:00
|
|
|
|
|
|
|
|
# Testing
|
|
|
|
|
|
|
|
|
|
The project uses [XUnit](https://xunit.github.io) as unit testing framework.
|
|
|
|
|
|
|
|
|
|
To run the tests you need to:
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
cd tests
|
|
|
|
|
dotnet restore
|
|
|
|
|
dotnet xunit
|
|
|
|
|
```
|