Skip to content

Commit 635d5e9

Browse files
committed
Updated Book sample with latest version (#81)
1 parent 428eb02 commit 635d5e9

File tree

7 files changed

+9
-19
lines changed

7 files changed

+9
-19
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<h1><img src="https://raw.githubusercontent.com/ivaylokenov/MyTested.WebApi/master/documentation/logo.png" align="left" alt="MyTested.WebApi" width="100">&nbsp; MyTested.WebApi - Fluent testing<br />&nbsp; for ASP.NET Web API</h1>
1+
<h1><img src="https://raw.githubusercontent.com/ivaylokenov/MyTested.WebApi/master/documentation/logo.png" align="left" alt="MyTested.WebApi" width="100">&nbsp; MyTested.WebApi - Fluent testing<br />&nbsp; for ASP.NET Web API 2</h1>
22
====================================
33

44
MyTested.WebApi is unit testing library providing easy fluent interface to test the ASP.NET Web API 2 framework. It is testing framework agnostic, so you can combine it with the testing library of your choice (e.g. NUnit, xUnit, etc.). Inspired by [ChaiJS](https://github.com/chaijs/chai).

documentation/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<h1><img src="https://raw.githubusercontent.com/ivaylokenov/MyTested.WebApi/master/documentation/logo.png" align="left" alt="MyTested.WebApi" width="100">&nbsp;&nbsp;&nbsp; MyTested.WebApi - ASP.NET Web API <br />&nbsp;&nbsp;&nbsp; Fluent Testing Framework</h1>
1+
<h1><img src="https://raw.githubusercontent.com/ivaylokenov/MyTested.WebApi/master/documentation/logo.png" align="left" alt="MyTested.WebApi" width="100">&nbsp; MyTested.WebApi - Fluent testing<br />&nbsp; for ASP.NET Web API 2</h1>
22
====================================
33

44
## Full list of available features

samples/Books Web API/Books.Tests/ApiTests/ControllerTests/BooksControllerTests.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
using Api.Models.ResponseModels;
88
using Mocks;
99
using MyTested.WebApi;
10-
using MyTested.WebApi.Builders.Contracts.Controllers;
1110
using NUnit.Framework;
1211

1312
[TestFixture]

samples/Books Web API/Books.Tests/ApiTests/IntegrationTests/BooksControllerIntegrationTests.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,9 @@
66
using Api;
77
using Api.Models.ResponseModels;
88
using Data;
9-
using Microsoft.Owin.Security;
109
using Mocks;
1110
using Models;
1211
using MyTested.WebApi;
13-
using MyTested.WebApi.Builders.Contracts.Servers;
1412
using Newtonsoft.Json.Linq;
1513
using NUnit.Framework;
1614

@@ -30,8 +28,7 @@ public void Init()
3028
kernel.Rebind<ApplicationUserManager>().ToConstant(MocksFactory.ApplicationUserManager);
3129
};
3230

33-
MyWebApi.Server().Starts<Startup>();
34-
this.server = MyWebApi.Server().Working();
31+
this.server = MyWebApi.Server().Starts<Startup>();
3532

3633
this.GetAccessToken();
3734
}

samples/Books Web API/Books.Tests/Books.Tests.csproj

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,6 @@
5454
<HintPath>..\packages\Microsoft.Owin.3.0.1\lib\net45\Microsoft.Owin.dll</HintPath>
5555
<Private>True</Private>
5656
</Reference>
57-
<Reference Include="Microsoft.Owin.Host.HttpListener, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
58-
<HintPath>..\packages\Microsoft.Owin.Host.HttpListener.3.0.1\lib\net45\Microsoft.Owin.Host.HttpListener.dll</HintPath>
59-
<Private>True</Private>
60-
</Reference>
6157
<Reference Include="Microsoft.Owin.Hosting, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
6258
<HintPath>..\packages\Microsoft.Owin.Hosting.3.0.1\lib\net45\Microsoft.Owin.Hosting.dll</HintPath>
6359
<Private>True</Private>
@@ -78,12 +74,12 @@
7874
<HintPath>..\packages\Microsoft.Owin.Testing.3.0.1\lib\net45\Microsoft.Owin.Testing.dll</HintPath>
7975
<Private>True</Private>
8076
</Reference>
81-
<Reference Include="Moq, Version=4.2.1507.118, Culture=neutral, PublicKeyToken=69f491c39445e920, processorArchitecture=MSIL">
82-
<HintPath>..\packages\Moq.4.2.1507.0118\lib\net40\Moq.dll</HintPath>
77+
<Reference Include="Moq, Version=4.2.1510.2205, Culture=neutral, PublicKeyToken=69f491c39445e920, processorArchitecture=MSIL">
78+
<HintPath>..\packages\Moq.4.2.1510.2205\lib\net40\Moq.dll</HintPath>
8379
<Private>True</Private>
8480
</Reference>
85-
<Reference Include="MyWebApi, Version=1.1.1.0, Culture=neutral, processorArchitecture=MSIL">
86-
<HintPath>..\packages\MyWebApi.1.1.2\lib\net45\MyWebApi.dll</HintPath>
81+
<Reference Include="MyTested.WebApi, Version=1.1.5.0, Culture=neutral, processorArchitecture=MSIL">
82+
<HintPath>..\packages\MyTested.WebApi.1.1.6\lib\net45\MyTested.WebApi.dll</HintPath>
8783
<Private>True</Private>
8884
</Reference>
8985
<Reference Include="Newtonsoft.Json, Version=7.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">

samples/Books Web API/Books.Tests/TestsStartup.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
namespace Books.Tests
22
{
33
using System.Reflection;
4-
using System.Web.Http;
54
using Api;
65
using MyTested.WebApi;
76
using NUnit.Framework;

samples/Books Web API/Books.Tests/packages.config

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,13 @@
77
<package id="Microsoft.AspNet.WebApi.Client" version="5.2.3" targetFramework="net45" />
88
<package id="Microsoft.AspNet.WebApi.Core" version="5.2.3" targetFramework="net45" />
99
<package id="Microsoft.Owin" version="3.0.1" targetFramework="net45" />
10-
<package id="Microsoft.Owin.Host.HttpListener" version="3.0.1" targetFramework="net45" />
1110
<package id="Microsoft.Owin.Hosting" version="3.0.1" targetFramework="net45" />
1211
<package id="Microsoft.Owin.Security" version="3.0.1" targetFramework="net45" />
1312
<package id="Microsoft.Owin.Security.Cookies" version="3.0.1" targetFramework="net45" />
1413
<package id="Microsoft.Owin.Security.OAuth" version="3.0.1" targetFramework="net45" />
1514
<package id="Microsoft.Owin.Testing" version="3.0.1" targetFramework="net45" />
16-
<package id="Moq" version="4.2.1507.0118" targetFramework="net45" />
17-
<package id="MyWebApi" version="1.1.2" targetFramework="net45" />
15+
<package id="Moq" version="4.2.1510.2205" targetFramework="net45" />
16+
<package id="MyTested.WebApi" version="1.1.6" targetFramework="net45" />
1817
<package id="Newtonsoft.Json" version="7.0.1" targetFramework="net45" />
1918
<package id="Ninject" version="3.2.2.0" targetFramework="net45" />
2019
<package id="NUnit" version="2.6.4" targetFramework="net45" />

0 commit comments

Comments
 (0)