Skip to content

Commit e468634

Browse files
committed
Merge pull request #189 from ivaylokenov/development
Version 1.0
2 parents 535c971 + 9057188 commit e468634

File tree

311 files changed

+4886
-4411
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

311 files changed

+4886
-4411
lines changed

LICENSE

Lines changed: 174 additions & 674 deletions
Large diffs are not rendered by default.

README.md

Lines changed: 22 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@
33

44
MyWebApi is unit testing library providing easy fluent interface to test the ASP.NET Web API 2 framework. Inspired by [TestStack.FluentMVCTesting](https://github.com/TestStack/TestStack.FluentMVCTesting) and [ChaiJS](https://github.com/chaijs/chai).
55

6-
[![Build status](https://ci.appveyor.com/api/projects/status/738pm1kuuv7yw1t5?svg=true)](https://ci.appveyor.com/project/ivaylokenov/mywebapi)
6+
[![Build status](https://ci.appveyor.com/api/projects/status/738pm1kuuv7yw1t5?svg=true)](https://ci.appveyor.com/project/ivaylokenov/mywebapi) [![NuGet Version](http://img.shields.io/nuget/v/MyWebApi.svg?style=flat)](https://www.nuget.org/packages/MyWebApi/) [![NuGet Downloads](http://img.shields.io/nuget/dt/MyWebApi.svg?style=flat)](https://www.nuget.org/packages/MyWebApi/) [![Coverage Status](https://coveralls.io/repos/ivaylokenov/MyWebApi/badge.svg?branch=master&service=github)](https://coveralls.io/github/ivaylokenov/MyWebApi?branch=master)
77

88
## Documentation
99

10-
Please see the [documentation](https://github.com/ivaylokenov/MyWebApi/tree/master/documentation) for full list of available features.
10+
Please see the [documentation](https://github.com/ivaylokenov/MyWebApi/tree/master/documentation) for full list of available features. Everything listed in the documentation is 100% covered by [more than 800 unit tests](https://github.com/ivaylokenov/MyWebApi/tree/master/src/MyWebApi.Tests) and should work correctly. Almost all items in the [issues page](https://github.com/ivaylokenov/MyWebApi/issues) are expected future features and enhancements.
1111

1212
## Installation
1313

14-
You can install this library using NuGet into your Test class library. It will automatically reference the needed dependency of Microsoft.AspNet.WebApi.Core (≥ 5.1.0) for you. .NET 4.5+ is needed.
14+
You can install this library using NuGet into your Test class project. It will automatically reference the needed dependencies of Microsoft.AspNet.WebApi.Core (≥ 5.1.0) and Microsoft.Owin.Testing (≥ 3.0.1) for you. .NET 4.5+ is needed.
1515

1616
Install-Package MyWebApi
1717

@@ -116,20 +116,31 @@ MyWebApi
116116
.OfType<SomeException>()
117117
.AndAlso()
118118
.WithMessage("Some exception message");
119+
120+
// run full pipeline integration test
121+
MyWebApi
122+
.Server()
123+
.Working(httpConfiguration)
124+
.WithHttpRequestMessage(
125+
request => request
126+
.WithMethod(HttpMethod.Post)
127+
.WithRequestUri("api/WebApiController/SomeAction/1"))
128+
.ShouldReturnHttpResponseMessage()
129+
.WithStatusCode(HttpStatusCode.OK)
130+
.AndAlso()
131+
.ContainingHeader("MyCustomHeader");
119132
```
120133

121134
## License
122135

123136
Code by Ivaylo Kenov. Copyright 2015 Ivaylo Kenov.
124-
This library is licensed under [GNU General Public License v3](https://tldrlegal.com/license/gnu-general-public-license-v3-(gpl-3)) (full terms and conditions [here](https://www.gnu.org/licenses/gpl.html)). Basically:
125-
126-
- If you create software that uses GPL, you must license that software under GPL v3 (see [GPL FAQ](http://www.gnu.org/licenses/gpl-faq.html#IfLibraryIsGPL))
127-
- If you create software that uses GPL, you must release your source code (see [GPL FAQ](http://www.gnu.org/licenses/gpl-faq.html#IfLibraryIsGPL))
128-
- If you start with a GPL license, you cannot convert to another license
129-
- **You cannot include MyWebApi in a closed source distribution under this license**
137+
This library is intended to be used in both open-source and commercial environments. To allow its use in as many
138+
situations as possible, MyWebApi is dual-licensed. You may choose to use MyWebApi under either the Apache License,
139+
Version 2.0, or the Microsoft Public License (Ms-PL). These licenses are essentially identical, but you are
140+
encouraged to evaluate both to determine which best fits your intended use.
130141

131-
If you have a really-coolish-and-nice open source or just closed source commercial project and you want to include MyWebApi in it, leave a question on the [issues page](https://github.com/ivaylokenov/MyWebApi/issues) and another license with the latest version of the library will be provided **free of charge** to you.
142+
Refer to [LICENSE](https://github.com/ivaylokenov/MyWebApi/blob/master/LICENSE) for detailed information.
132143

133144
## Any questions, comments or additions?
134145

135-
Leave an issue on the [issues page](https://github.com/ivaylokenov/MyWebApi/issues) or send a [pull request](https://github.com/ivaylokenov/MyWebApi/pulls).
146+
If you have a feature request or bug report, leave an issue on the [issues page](https://github.com/ivaylokenov/MyWebApi/issues) or send a [pull request](https://github.com/ivaylokenov/MyWebApi/pulls). For general questions and comments, use the [StackOverflow](http://stackoverflow.com/) forum.

appveyor.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
version: 1.0.{build}
2+
before_build:
3+
- cmd: nuget restore src\MyWebApi.sln
4+
build:
5+
project: src\MyWebApi.sln
6+
parallel: true
7+
verbosity: minimal
8+
environment:
9+
COVERALLS_REPO_TOKEN:
10+
secure: HJDQ+oupn7YinVAV3kdGhw/Bz4FxYNpATMYdjP0kiZEIIAaszku5T4CCDMbh2ZA2
11+
after_test:
12+
- src\packages\OpenCover.4.6.166\tools\OpenCover.Console.exe -register:user -filter:"+[*]*" -target:"src\packages\NUnit.Runners.2.6.4\tools\nunit-console.exe" -targetargs:"/noshadow /domain:single src\MyWebApi.Tests\bin\debug\MyWebApi.Tests.dll" -output:coverage.xml
13+
- src\packages\coveralls.io.1.3.4\tools\coveralls.net.exe --opencover coverage.xml

0 commit comments

Comments
 (0)