Browse Source

Fix compilation errors and failling unit tests

pull/1005/head
Miguel Veloso 5 years ago
parent
commit
3ef07a580c
4 changed files with 6 additions and 2 deletions
  1. +0
    -2
      src/Services/Basket/Basket.UnitTests/Application/BasketWebApiTest.cs
  2. +2
    -0
      src/Services/Basket/Basket.UnitTests/Basket.UnitTests.csproj
  3. +2
    -0
      src/Services/Catalog/Catalog.UnitTests/Catalog.UnitTests.csproj
  4. +2
    -0
      src/Services/Marketing/Marketing.FunctionalTests/Marketing.FunctionalTests.csproj

+ 0
- 2
src/Services/Basket/Basket.UnitTests/Application/BasketWebApiTest.cs View File

@ -54,7 +54,6 @@ namespace UnitTest.Basket.Application
var actionResult = await basketController.GetBasketByIdAsync(fakeCustomerId);
//Assert
Assert.Equal((actionResult.Result as OkObjectResult).StatusCode, (int)System.Net.HttpStatusCode.OK);
Assert.Equal(((CustomerBasket)actionResult.Value).BuyerId, fakeCustomerId);
}
@ -80,7 +79,6 @@ namespace UnitTest.Basket.Application
var actionResult = await basketController.UpdateBasketAsync(fakeCustomerBasket);
//Assert
Assert.Equal((actionResult.Result as OkObjectResult).StatusCode, (int)System.Net.HttpStatusCode.OK);
Assert.Equal(((CustomerBasket)actionResult.Value).BuyerId, fakeCustomerId);
}


+ 2
- 0
src/Services/Basket/Basket.UnitTests/Basket.UnitTests.csproj View File

@ -7,6 +7,8 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.App" />
<PackageReference Include="Microsoft.AspNetCore.Mvc.Testing" Version="2.2.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.9.0" />
<PackageReference Include="xunit" Version="2.4.1" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.1">


+ 2
- 0
src/Services/Catalog/Catalog.UnitTests/Catalog.UnitTests.csproj View File

@ -7,6 +7,8 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.App" />
<PackageReference Include="Microsoft.AspNetCore.Mvc.Testing" Version="2.2.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.9.0" />
<PackageReference Include="xunit" Version="2.4.1" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.1">


+ 2
- 0
src/Services/Marketing/Marketing.FunctionalTests/Marketing.FunctionalTests.csproj View File

@ -17,6 +17,8 @@
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.App" />
<PackageReference Include="Microsoft.AspNetCore.Mvc.Testing" Version="2.2.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.9.0" />
<PackageReference Include="Microsoft.AspNetCore.TestHost" Version="2.2.0" />
<PackageReference Include="xunit" Version="2.4.1" />


Loading…
Cancel
Save