Commit Graph

49 Commits

Author SHA1 Message Date
Eric Fleming
7c092ba5ad Enforcing IAggregateRoot (#273)
- Enforcing it on the Async and EfRepositories
- Making CatalogBrand, Item, and Type AggregateRoots because they are
just lookup tables
2019-07-11 09:31:18 -04:00
Eric Fleming
b3d855847b Updating route in test to use the proper login route 2019-06-21 21:40:20 -04:00
Eric Fleming
8006754cd7 Rename test 2019-06-15 21:18:30 -04:00
Eric Fleming
fde9a7c439 Removing BasketItemRepository and updating tests 2019-06-15 17:07:22 -04:00
Eric Fleming
693c6c4466 BasketService no onger uses UriComposer
- Also fixing corresponding unit tests
2019-04-19 11:06:00 -04:00
Eric Fleming
794b9d7ab8 Updated NuGet Packages 2019-04-05 22:10:53 -04:00
Eric Fleming
456d17d6c3 Getting rid of warning 2019-04-05 22:06:40 -04:00
Eric Fleming
0fc29c818b cleaning up a warning 2019-04-05 22:04:15 -04:00
Eric Fleming
8a00269ebd Removing IRepository
- This also involved cleaning up places where IRepository was still being references in Startup
- Removed unused repository from Basket service
2019-03-01 22:21:12 -05:00
Eric Fleming
058d4e6f5a Removing the GetById from IRepository
- removed it and updated everywhere, where it was called to use the async version
2019-03-01 21:42:52 -05:00
Steve Smith
765e1508bf Got RedirectToLoginIfNotAuth test working 2019-02-22 14:21:14 -05:00
Steve Smith
f5a17ec635 Fixed SCSS variables reference issue (#218)
Fixed tests relying on /sign-in renamed to /login
2019-02-22 12:58:36 -05:00
Steve Smith
9d75890302 Test cleanup and adding code coverage 2019-01-25 15:58:59 -05:00
Steve Smith
8941e6b9a6 Login POST Test Working (#198)
* Got login test working

With request verification token
2019-01-25 13:54:35 -05:00
Steve Smith
1b610dd7a4 Adding functional tests (#197)
* Working on login tests

* Testing login with an integration test

Working on login functional test.

* Got functional login test working
2019-01-25 13:13:01 -05:00
Steve Smith
99c416142f Consolidate Web and WebRazorPages Projects (#192)
* Moved Privacy, Home page to Razor Pages

* Migrating Basket from RazorPages to Web.

* Removed BasketController; refactored viewmodels

* Moved BasketComponent into Pages/Shared
Added auth rules to Startup for Pages
Added notes to controllers about Pages usage.

* Fixed broken my orders test
Consolidated Functional Tests

* Fixed logo link to home page
Fixed Order Detail Total $ format
2019-01-18 13:29:00 -05:00
Steve Smith
6c41a1bab9 Upgrade to 2.2 (#171)
* Initial Web2 project working

* Initial WebRazorPages project working

* Adding additional sln files

* Removing old project

* Fixed integration tests

* Getting FunctionalTests working.

* Got Swagger working in Web

* Moved web2 to web
2018-12-28 10:04:35 -08:00
Eric Fleming
eb02750841 Remove basket items when basket is deleted (#170)
* Proving out removing the basket items at the same time the basket is deleted

* Fixing existing unit tests

* Adding a unit test for the Deletebasket method

* Rename test and deleting basket items before basket

* Added integration test for DeleteAsync method for BasketItems

- Also added a BasketBuilder to create a Basket with no items, or one item.
2018-12-28 07:40:35 -08:00
Eric Fleming
0d44a514ab Fix 147 include order id in details query (#169)
* Adding Id to query so the correct order details are always pulled back

* Removing unused usings

- also removed the sync method as it is not used anywhere in the solution. The Async should be the preferred one.

* Adding integration test for GetByIdWithItemAsync

* Rename test
2018-12-14 17:54:23 -08:00
Hemant Kumar Dundigalla
6299d5ccc7 Removed all the unused directives in the Solution with the assistance of Resharper 2018-10-06 23:21:15 +01:00
Rafsanul Hasan
1b5b179c7f Update ASP.NET Core Version to 2.10 to 2.1.3 (#126)
* Updated Web Applications' NuGet Packages:
- [x] Microsoft.AspNetCore.App 2.1.0->2.1.3
- [x] Microsoft.EntityFrameworkCore.Tools 2.1.0->2.1.2
- [x] Microsoft.VisualStudio.Web.CodeGeneration.Design 2.1.0->2.1.3

* Updated Infrastructure Library's BuGet Packages:
- [x] Microsoft.AspNetCore.Identity 2.1.0->2.1.3
- [x] Microsoft.AspNetCore.Identity.EntityFrameworkCore 2.1.0->2.1.3
- [x] Microsoft.EntityFrameworkCore.SqlServer 2.1.0->2.1.2
- [x] Microsoft.EntityFrameworkCore.Tools 2.1.0->2.1.2

* Updated Test projects' NuGetPackages:
- [x] Microsoft.AspNetCore.Mvc.Testing 2.1.0->2.1.2
- [x] Microsoft.NET.Test.Sdk 15.8.0-preview-20180510-03->15.8.0
- [x] Microsoft.AspNetCore.Mvc 2.1.0->2.1.3
2018-09-05 08:09:42 -04:00
Jeremy Hutchinson
f953495e38 Standardize namespaces to all be under the Microsoft.eShopOnWeb namespace and update default namespaces. (#102) 2018-06-05 08:52:54 -04:00
Steve Smith
814d3e249c Adding Tests and Refactoring
Functional Tests for RazorPages added
2018-05-31 12:28:55 -04:00
Steve Smith
5fb9e741dd Updated to 2.1 RTM
And updated functional tests to use CustomWebApplicationFactory.
2018-05-30 22:05:58 -04:00
Steve Smith
074bdb2a66 Adding functional tests using WebApplicationFactory 2018-05-29 22:20:07 -04:00
Steve Smith
8169d2f485 WIP (#95) 2018-05-29 10:05:50 -04:00
Steve Smith
c5a2c86ff0 Final updates to work with 2.1RC1 2018-05-19 17:21:55 -04:00
Steve Smith
80604062d9 Updating to 2.1RC1 2018-05-19 17:13:55 -04:00
Steve Smith
4e7f3d7302 Updated runtimes to 2.1
Functional Tests are currently failing.
2018-05-18 17:42:16 -04:00
Steve Smith
ed6dc61ad8 Updated to latest xunit packages 2018-05-18 17:34:48 -04:00
Steve Smith
108d894826 Updated to rc1-final of 2.1 2018-05-18 17:34:07 -04:00
Steve Smith
af7019cfdb Updating to latest released versions 2018-05-18 17:27:49 -04:00
Steve Smith
b864be9265 Adding guards and more tests (#68)
* Adding single entity by spec method to repository

* Adding guards and more unit tests
2017-10-30 11:53:29 -07:00
Steve Smith
4a549c3401 Cleaning up Checkout auth (#64) 2017-10-23 13:51:27 -04:00
Steve Smith
749a37d6d9 Minor cleanup (#63) 2017-10-23 12:11:55 -04:00
Steve Smith
0eb4d72b89 Refactoring and Adding Tests (#58)
* Moving Identity seeding to its own class and method.

* Adding tests for AddItem

* Added catalog api controller and functional tests
Added and cleaned up some comments

* Adding integration tests for OrderRepository

* Getting integration test for order working with inmemory db
2017-10-20 12:52:42 -04:00
Steve Smith
aca618316a Initial Upgrade to .NET Core 2.0 (#50)
* Ardalis/upgrade1 (#44)

* Upgrading to netcore 2.0
Updating repository to support async options and refactoring to use it.

* Starting work on tracking customer orders feature.

* Cleaning up some bugs
Working on basket view component implementation

* Fixing up styles, especially for basket in header.

* Adding Order Features (#47)

* Working on order model binding from checkout page - WIP

* Small layout tweaks (#43)

* Updating quantities implemented.

* Fixed basket widget count

* Order History (#49)

* working on creating and viewing orders.
* Working on wiring up listing of orders
* List orders page works as expected. Needed to support ThenInclude scenarios. Currently using strings.
2017-09-22 11:28:55 -04:00
Steve Smith
4385c2f291 Adding more spec tests (#29) 2017-08-07 13:41:57 -04:00
Steve Smith
d7eb59c097 Refactoring and Adding Tests (#28)
* Introducing repository and refactoring services.
Changing entities to use int keys everywhere.

* Refactoring application services to live in web project and only reference repositories, not EF contexts.

* Cleaning up implementations

* Moving logic out of CatalogController
Moving entity knowledge out of viewmodels.

* Implementing specification includes better for catalogservice

* Cleaning up and adding specification unit tests
2017-08-07 13:25:11 -04:00
Steve Smith
b52048b74d Fixing (ignoring) test (#24) 2017-07-28 23:39:38 -04:00
Steve Smith
12cbd595d0 Commenting out unused test. (#23) 2017-07-28 23:27:41 -04:00
Steve Smith
dd1b92a572 Updating package references
Adding EF tooling packages
Updating README instructions for migrations
2017-06-20 07:07:45 -04:00
Steve Smith
8a4edfec19 functional tests 2017-05-01 06:27:21 -04:00
Steve Smith
235b946f4a adding integration tests 2017-04-30 09:16:45 -04:00
Steve Smith
dfe0106ce3 Unit tests working; added logger adapter. 2017-04-30 08:06:06 -04:00
Steve Smith
6f908bb8e5 Looking to unit test logging but blocked by extension method currently. 2017-04-28 20:27:18 -04:00
Steve Smith
5dbbc4c791 Adding unit tests, refactoring file access to a service, adding CatalogImageMissingException. 2017-04-28 19:56:32 -04:00
Steve Smith
ac89e73bf4 getting initial tests working 2017-04-27 16:53:51 -04:00
Steve Smith
b3bb8c9c4e Adding test projects 2017-04-24 08:33:05 -04:00