Commit Graph

119 Commits

Author SHA1 Message Date
Steve Smith
e7d71ea572 Separate OrderViewModel from OrderDetailsViewModel (#904)
* Separate OrderViewModel from OrderDetailsViewModel

* Update packages
2023-05-23 14:55:24 -04:00
Steve Smith
d2412a84a9 Fix Null Warnings (#874)
* Fixing null warnings

* Fix null warnings
Fix other compiler warnings
2023-03-20 11:52:14 -04:00
Said Haouaouchi
4304545f19 Fix Multiple DbContext Registration (#703)
Hi, i noticed that in the WebTestFixture used for FunctionalTests the DbContexts were registered without removing the existing ones in Program.cs
which leads to duplication
2023-02-28 15:16:39 -05:00
Cédric Michel
fdb1c34d61 Feature/dotnet7 migration (#828)
* migration to .net 7

* remove temp memory database

* adapt global.json .net 7

* adapt Rich Code Navigation to .net 7

* update and clean run for .net 7

* update .net ef tool

Co-authored-by: cedri <cedri@BAS>
2022-12-20 13:20:50 -05:00
Cédric Michel
707f8696f9 Fix/issue 826 support cross thread minimal api (#827)
* remove repository global variable to suuport muliple thread (call by handle method)

* add parallel call tests

Co-authored-by: cedri <cedri@BAS>
2022-12-19 22:24:46 -05:00
Philippe Vaillancourt
a72dd775ee Refactor to introduce nullable types and reduce compiler warnings (#801)
* Introduce nullable types to Core, Infrastructure and PublicApi projects

* Refactor unit tests

* Fixed failing tests

* Introduce Parameter object for CatalogItem update method

* Refactor CataloItemDetails param object

* Refactor following PR comments
2022-10-04 11:57:40 -04:00
dependabot[bot]
1d7125d255 Bump Microsoft.EntityFrameworkCore.InMemory from 6.0.7 to 6.0.8 (#782)
Bumps [Microsoft.EntityFrameworkCore.InMemory](https://github.com/dotnet/efcore) from 6.0.7 to 6.0.8.
- [Release notes](https://github.com/dotnet/efcore/releases)
- [Commits](https://github.com/dotnet/efcore/compare/v6.0.7...v6.0.8)

---
updated-dependencies:
- dependency-name: Microsoft.EntityFrameworkCore.InMemory
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-09-08 16:52:06 -04:00
dependabot[bot]
8fbe6c43ef Bump Microsoft.AspNetCore.Mvc.Testing from 6.0.7 to 6.0.8 (#792)
Bumps [Microsoft.AspNetCore.Mvc.Testing](https://github.com/dotnet/aspnetcore) from 6.0.7 to 6.0.8.
- [Release notes](https://github.com/dotnet/aspnetcore/releases)
- [Changelog](https://github.com/dotnet/aspnetcore/blob/main/docs/ReleasePlanning.md)
- [Commits](https://github.com/dotnet/aspnetcore/compare/v6.0.7...v6.0.8)

---
updated-dependencies:
- dependency-name: Microsoft.AspNetCore.Mvc.Testing
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-09-08 16:51:24 -04:00
dependabot[bot]
73c6d7fd70 Bump Microsoft.NET.Test.Sdk from 17.2.0 to 17.3.1 (#786)
Bumps [Microsoft.NET.Test.Sdk](https://github.com/microsoft/vstest) from 17.2.0 to 17.3.1.
- [Release notes](https://github.com/microsoft/vstest/releases)
- [Commits](https://github.com/microsoft/vstest/compare/v17.2.0...v17.3.1)

---
updated-dependencies:
- dependency-name: Microsoft.NET.Test.Sdk
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-09-07 12:02:46 -04:00
dependabot[bot]
dce9877e01 Bump Moq from 4.18.1 to 4.18.2
Bumps [Moq](https://github.com/moq/moq4) from 4.18.1 to 4.18.2.
- [Release notes](https://github.com/moq/moq4/releases)
- [Changelog](https://github.com/moq/moq4/blob/main/CHANGELOG.md)
- [Commits](https://github.com/moq/moq4/compare/v4.18.1...v4.18.2)

---
updated-dependencies:
- dependency-name: Moq
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-29 18:00:10 +00:00
dependabot[bot]
f4e50767a7 Bump xunit.runner.console from 2.4.1 to 2.4.2 (#765)
Bumps [xunit.runner.console](https://github.com/xunit/xunit) from 2.4.1 to 2.4.2.
- [Release notes](https://github.com/xunit/xunit/releases)
- [Commits](https://github.com/xunit/xunit/compare/2.4.1...2.4.2)

---
updated-dependencies:
- dependency-name: xunit.runner.console
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-08-29 13:59:46 -04:00
dependabot[bot]
05143b5dac Bump xunit from 2.4.1 to 2.4.2 (#766)
Bumps [xunit](https://github.com/xunit/xunit) from 2.4.1 to 2.4.2.
- [Release notes](https://github.com/xunit/xunit/releases)
- [Commits](https://github.com/xunit/xunit/compare/2.4.1...2.4.2)

---
updated-dependencies:
- dependency-name: xunit
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-08-29 13:59:37 -04:00
Cédric Michel
b4e184046f Fix/issue 756 (#762)
* fix issue https://github.com/dotnet-architecture/eShopOnWeb/issues/756

* update all nuget package
2022-07-21 09:27:29 -04:00
Cédric Michel
4b77a6ce4a update multiple nuget package (#742) 2022-05-22 21:13:06 -04:00
dependabot[bot]
d333e4a826 Bump Microsoft.AspNetCore.Mvc.Testing from 6.0.4 to 6.0.5 (#730)
Bumps [Microsoft.AspNetCore.Mvc.Testing](https://github.com/dotnet/aspnetcore) from 6.0.4 to 6.0.5.
- [Release notes](https://github.com/dotnet/aspnetcore/releases)
- [Changelog](https://github.com/dotnet/aspnetcore/blob/main/docs/ReleasePlanning.md)
- [Commits](https://github.com/dotnet/aspnetcore/commits)

---
updated-dependencies:
- dependency-name: Microsoft.AspNetCore.Mvc.Testing
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-05-10 10:56:56 -04:00
dependabot[bot]
790a65914e Bump xunit.runner.visualstudio from 2.4.4 to 2.4.5 (#722)
Bumps [xunit.runner.visualstudio](https://github.com/xunit/visualstudio.xunit) from 2.4.4 to 2.4.5.
- [Release notes](https://github.com/xunit/visualstudio.xunit/releases)
- [Commits](https://github.com/xunit/visualstudio.xunit/commits)

---
updated-dependencies:
- dependency-name: xunit.runner.visualstudio
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-05-10 10:55:42 -04:00
Tarun Jain
003fecc9d6 Merge pull request #721 from dotnet-architecture/dependabot/nuget/xunit.runner.visualstudio-2.4.4
Bump xunit.runner.visualstudio from 2.4.3 to 2.4.4
2022-05-06 16:01:52 +05:30
dependabot[bot]
0e10b16ad4 Bump xunit.runner.visualstudio from 2.4.3 to 2.4.4
Bumps [xunit.runner.visualstudio](https://github.com/xunit/visualstudio.xunit) from 2.4.3 to 2.4.4.
- [Release notes](https://github.com/xunit/visualstudio.xunit/releases)
- [Commits](https://github.com/xunit/visualstudio.xunit/commits)

---
updated-dependencies:
- dependency-name: xunit.runner.visualstudio
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-05 14:26:45 +00:00
dependabot[bot]
22388b51c3 Bump MSTest.TestAdapter from 2.2.9 to 2.2.10
Bumps [MSTest.TestAdapter](https://github.com/microsoft/testfx) from 2.2.9 to 2.2.10.
- [Release notes](https://github.com/microsoft/testfx/releases)
- [Commits](https://github.com/microsoft/testfx/compare/v2.2.9...v2.2.10)

---
updated-dependencies:
- dependency-name: MSTest.TestAdapter
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-04 13:05:01 +00:00
dependabot[bot]
1ffbd38e31 Bump MSTest.TestFramework from 2.2.9 to 2.2.10 (#717)
Bumps [MSTest.TestFramework](https://github.com/microsoft/testfx) from 2.2.9 to 2.2.10.
- [Release notes](https://github.com/microsoft/testfx/releases)
- [Commits](https://github.com/microsoft/testfx/compare/v2.2.9...v2.2.10)

---
updated-dependencies:
- dependency-name: MSTest.TestFramework
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-05-04 09:04:10 -04:00
Cédric Michel
31be1d4d74 fix fraud posibility the client sent the unit price (#702)
* fix fraud posibility the client sent the unit price, fix unit test to use the fomat as server base

* fix bad coding convention

* update dotnet tool ef and nuget package

* Align MD with real database by default
2022-04-13 14:15:48 -04:00
Cédric Michel
07d7275860 Fix docker environment issues (#694) 2022-04-06 08:28:57 -04:00
dependabot[bot]
0dd499ef3f Bump coverlet.collector from 3.1.0 to 3.1.2
Bumps [coverlet.collector](https://github.com/coverlet-coverage/coverlet) from 3.1.0 to 3.1.2.
- [Release notes](https://github.com/coverlet-coverage/coverlet/releases)
- [Commits](https://github.com/coverlet-coverage/coverlet/commits)

---
updated-dependencies:
- dependency-name: coverlet.collector
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-02-07 14:24:56 +00:00
Cédric Michel
87ae6c618c fix some issue and cover by test (#669) 2022-01-25 10:50:15 -05:00
Cédric Michel
6847cdaa0c update all nuget package use new version of Ardalis.Specifications (#668) 2022-01-21 10:36:07 -05:00
Cédric Michel
1e13733d3d Feature/migrate to minimal api (#662)
* migrate from classic controller to minimal api

* fix all PublicApi integration test

* update all nuget package add forget project

* fix pay now

* Adapt readme use in memory database

* undo AuthenticateEndpoint to use EndpointBaseAsync

* Update README.md

Co-authored-by: Steve Smith <steve@kentsmiths.com>

Co-authored-by: Steve Smith <steve@kentsmiths.com>
2022-01-21 10:13:31 -05:00
Steve Smith
ce63e38a23 net6conversion (#642)
* Converting to net6 startup and integration test formats

* Update to minimal api and using pagetitle

* Adjust functional test fixtures
Update ApiEndpoints package version

* Finish migration to minimal api startup
2021-12-06 15:14:43 -05:00
Steve Smith
833dc3bd3a Refactor to eliminate unneeded BasketQueryService 2021-12-02 16:04:30 -05:00
dependabot[bot]
3183f5ea18 Bump Microsoft.EntityFrameworkCore.InMemory from 5.0.11 to 6.0.0 (#626)
Bumps [Microsoft.EntityFrameworkCore.InMemory](https://github.com/dotnet/efcore) from 5.0.11 to 6.0.0.
- [Release notes](https://github.com/dotnet/efcore/releases)
- [Commits](https://github.com/dotnet/efcore/compare/v5.0.11...v6.0.0)

---
updated-dependencies:
- dependency-name: Microsoft.EntityFrameworkCore.InMemory
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-11-11 16:44:07 -05:00
dependabot[bot]
a09f39a717 Bump Microsoft.AspNetCore.Mvc.Testing from 5.0.11 to 6.0.0 (#617)
Bumps [Microsoft.AspNetCore.Mvc.Testing](https://github.com/dotnet/aspnetcore) from 5.0.11 to 6.0.0.
- [Release notes](https://github.com/dotnet/aspnetcore/releases)
- [Commits](https://github.com/dotnet/aspnetcore/compare/v5.0.11...v6.0.0)

---
updated-dependencies:
- dependency-name: Microsoft.AspNetCore.Mvc.Testing
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-11-11 16:36:01 -05:00
Shady Nagy
9db2feb930 Shady nagy/net6 (#614)
* udated to .net6

* used the .net6 version RC2

* added editconfig.

* App core new Scoped Namespaces style.

* BlazorAdmin new Scoped Namespaces style.

* Blazor Shared new Scoped Namespaces style.

* Infra new Scoped Namespaces style.

* public api new Scoped Namespaces style.

* web new Scoped Namespaces style.

* FunctionalTests new Scoped Namespaces style.

* Integrational tests new Scoped Namespaces style.

* unit tests new Scoped Namespaces style.

* update github action.

* update github action.

* change the global.
2021-11-05 19:55:48 -04:00
Cédric Michel
984740d422 Basket : Improve, reduce, remove duplication call to database (#610) 2021-11-01 17:09:34 -04:00
Cédric Michel
ed63faac84 update all nuget package (#603) 2021-10-28 09:25:55 -04:00
Steve Smith
4da4822e8e Update AddItemToBasket.cs 2021-10-26 12:40:40 -04:00
dependabot[bot]
5a59ec33c2 Bump Microsoft.AspNetCore.Mvc.Testing from 5.0.0 to 5.0.11 (#590)
Bumps [Microsoft.AspNetCore.Mvc.Testing](https://github.com/dotnet/aspnetcore) from 5.0.0 to 5.0.11.
- [Release notes](https://github.com/dotnet/aspnetcore/releases)
- [Commits](https://github.com/dotnet/aspnetcore/compare/v5.0.0...v5.0.11)

---
updated-dependencies:
- dependency-name: Microsoft.AspNetCore.Mvc.Testing
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-10-26 11:11:56 -04:00
dependabot[bot]
71109f4d72 Bump Microsoft.EntityFrameworkCore.InMemory from 5.0.0 to 5.0.11 (#585)
Bumps [Microsoft.EntityFrameworkCore.InMemory](https://github.com/dotnet/efcore) from 5.0.0 to 5.0.11.
- [Release notes](https://github.com/dotnet/efcore/releases)
- [Commits](https://github.com/dotnet/efcore/compare/v5.0.0...v5.0.11)

---
updated-dependencies:
- dependency-name: Microsoft.EntityFrameworkCore.InMemory
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-10-25 17:05:12 -04:00
dependabot[bot]
9656d021da Bump Microsoft.NET.Test.Sdk from 16.8.0 to 16.11.0 (#583)
Bumps [Microsoft.NET.Test.Sdk](https://github.com/microsoft/vstest) from 16.8.0 to 16.11.0.
- [Release notes](https://github.com/microsoft/vstest/releases)
- [Commits](https://github.com/microsoft/vstest/compare/v16.8.0...v16.11.0)

---
updated-dependencies:
- dependency-name: Microsoft.NET.Test.Sdk
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-10-25 16:11:46 -04:00
Steve Smith
8a45a2c858 Update Specification and other packages to latest version (#582)
* Updating repositories and specification version
Need to fix broken tests

* removing test that would just be testing mocked result now

* Refactored from IAsyncRepository and removed it.
Tests pass.

* Update packages
2021-10-25 15:13:02 -04:00
yigith
97320e16ca changed method name (#566) 2021-10-24 17:50:29 -04:00
Sumit Ghosh
1f1882e320 Fixed integration test cases 2021-06-24 15:27:01 +05:30
Sumit Ghosh
28af1642f6 Feature/update net 5 (#487)
* Updated ApplicationCore to net 5

* Updated Infrastructure project to net 5

* Updated BlazorShared project to net 5

* Updated PublicApi project to net 5

* Updated Web mvc project to net 5

* Updated BlazorAdmin project to net-5

* Updated FunctionalTests to net 5

* Updated UnitTests project to net 5

* Updated IntegrationTests project to net 5

* Fixed CSS specific bug in BlazorAdmin project

* Updated github action worflow yaml

* Changes the name to only .NET

* Removed hardcoded minor version from github action workflow.

* Removed commneted code.

* Removed minor versions from the docker file

* Updated dotnet-ef tool version configuration to net-5

* Removed old migration plans

* Added net5 migration plans

* Updated infrastructure projecti setting.

* Removed database error page related configuration

* Removed commented package.
2020-12-03 11:23:11 -05:00
Viswanatha Swamy
1598d0bbe1 Swamy/remove unused usings and reorganize usings (#489)
* Removed and Reordered the using statements

* Removed and Reordered the usings inside Web Project

* Removed and Reordered the usings inside PublicApi project

* Removed Unused usings and reorganized usings inside Infrastructure project
2020-12-03 08:05:28 -05:00
Cédric Michel
6041a1f183 Use cancellation token in repository and web fie system (http call can cancelled) (#471)
Co-authored-by: cmichel <cmichel@interparking.com>
2020-11-30 12:21:19 -05:00
Onur BIYIK
2502e01efd Fix for Nullreference exception when public api authenticate endpoint called with invalid username. (#482) 2020-11-14 14:15:08 -05:00
Steve Smith
754c845e9f Upgrade to use Specification 4.0.0 (#444) 2020-07-31 14:52:14 -04:00
Steve Smith
1c75f08a33 Add catalogitem update endpoint to public api (#418)
* Initial update endpoint working

* Updated CatalogItem to support more updates; added tests

* Got MediatR domain events working to check for duplicate item names

* Adding reference link

* Remove domain events spike code

* clean up usings
2020-07-10 11:50:46 -04:00
Steve Smith
dd5a435cb4 Adding Endpoints with Authorization in separate PublicApi project (#413)
* Adding tests for GetById endpoint

* Updating tests and messages

* Adding paged endpoint and also AutoMapper

* Authenticate endpoint works as bool with tests

* Got JWT token security working with Create and Delete endpoints and Swashbuckle.

* Working on getting cookie and jwt token auth working in the same app
All tests are passing

* Creating new project and moving APIs
Build succeeds; tests need updated.

* all tests passing after moving services to PublicApi project

* Fix authorize attributes

* Uncomment and update ApiCatalogControllerLists tests

Co-authored-by: Eric Fleming <eric-fleming18@hotmail.com>
2020-06-30 11:36:28 -04:00
Steve Smith
b4d0f07c2e Adding API Endpoints for Catalog Items (#410)
* Adding new Endpoints

* update nuget packages

* Modifying API to work well with Swagger.

* Remove Swashbuckle.Core
2020-06-25 16:23:44 -04:00
yigith
3b1339787f 401 fix (#408)
* transfer basket on login

* review page

* unit tests for TransferBasketAsync
2020-06-24 20:48:23 -04:00
Eric Fleming
a4d02d9dad Updated Unit tests after recent changes (#409) 2020-06-21 20:02:34 -04:00