Commit Graph

69 Commits

Author SHA1 Message Date
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
549baab979 Merge remote-tracking branch 'origin/master' into netcore2.1 2018-05-31 12:29:12 -04:00
Steve Smith
814d3e249c Adding Tests and Refactoring
Functional Tests for RazorPages added
2018-05-31 12:28:55 -04:00
lisabii
7a28c62910 fix an asp-action value (#98)
There is no "Update" in BasketController and it should be "Index".
2018-05-31 10:09:52 -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
8c11da75ae Moving shared files to Shared folder
Razor Pages now supports /Pages/Shared for shared files.
2018-05-29 13:40:46 -04:00
Steve Smith
2ab390fa6d Using partial Tag Helper 2018-05-29 13:35:14 -04:00
Steve Smith
8169d2f485 WIP (#95) 2018-05-29 10:05:50 -04:00
Steve Smith
5b268b210b Minor specification updates (#93) 2018-05-23 16:21:50 -04:00
Steve Smith
9075221073 Added docker support 2018-05-22 14:23:55 -04:00
Steve Smith
7456c26daf converting to partial taghelper 2018-05-19 17:40:06 -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
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
f6f85869fb Updating Infrastructure to NetStandard (#86) 2018-04-09 10:13:50 -04:00
Nud
0caba1a8e7 Fix empty userName when running WebRazorPages by adding default username. (#80) 2018-04-03 10:35:11 -04:00
Steve Smith
c276b11ca0 Ardalis/cleanup (#75)
* Replace Magic String with nameof

* Remove commented code
2018-01-04 11:18:50 -05:00
Steve Smith
9d32c48c30 Replace Magic String with nameof (#74) 2018-01-04 10:57:53 -05: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
3d46c80cff Adding 2FA Authenticator Support (#66)
* Adding support for 2fa, more auth options

* WIP getting auth stuff working

* Added Manage views. 2FA working now for MVC app.

* Switching to using a controller for no-UI logout scenario

* Adding Razor Pages impl of 2FA auth stuff. Works.
2017-10-23 21:58:21 -04:00
Steve Smith
101b7bab9b Missed One Commit (#65)
* Cleaning up Checkout auth

* Mapping order items to backing field properly in DbContext
2017-10-23 13:52:39 -04: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
16a6f83ef4 Adding Auth (#62)
* Refactoring ViewModels into Razor Pages models

* Cleaning up Basket viewcomponent

* Refactoring services.
Fixed bug in basket item counter.

* Adding Auth filters to Web and WebWithRazor
2017-10-23 11:22:54 -04:00
Steve Smith
16d81ae450 Refactoring Services (#61)
* Refactoring ViewModels into Razor Pages models

* Cleaning up Basket viewcomponent

* Refactoring services.
Fixed bug in basket item counter.
2017-10-23 10:52:33 -04:00
Steve Smith
dea73a5f5e Adding Razor Pages Version (#60)
* In progress copying code into new RP project
Cleaning up namespaces and whitespace in original Web project

* Cleaning up some more namespaces

* Removing unused page.

* Index page loads correctly.

* Fixing up paging.

* Moving views; getting ready to convert to RPs

* Auto stash before merge of "master" and "origin/master"

Basket and Checkout pages wired up

* WIP on Account pages

* Working on signin/signout

* Working on auth

* Getting order history working
Fixing auth bug

* Fixing Checkout issue

* Fixing link
2017-10-23 09:23:57 -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
32950aa175 Cleaning up EF 2.0 Migrations (#57)
Moving Seed logic to Program.cs
2017-10-18 14:25:10 -04:00
Steve Smith
964173f277 Using Base Specification Class (#56)
* 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.

* Remove non-icon basket link from header
Add comments to EF query logic

* Refactoring to use base specification type

* minor cleanup
2017-10-18 13:18:25 -04:00
Alan Macgowan
d52dbb1915 Removed duplicate memory cache services (#55)
Removed duplicate line services.AddMemoryCache();
2017-10-18 13:00:03 -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
Robert Sandu
b90bd08d11 Small layout tweaks (#43) 2017-09-01 09:15:42 -04:00
Steve Smith
eefc8170cb Updating and testing migrations (#42)
Updating readme to describe how to run migrations
2017-08-22 17:58:53 -04:00
Steve Smith
ecb4889dd3 Basket persistence (#41)
* Renamed Cart to Basket throughout
* Implemented cookie-based anonymous basket handling and transfer to user upon login. Still need to implement transfer upon registration.
2017-08-22 13:51:08 -04:00
Steve Smith
3a95375ae7 Renaming Cart to Basket (#38) 2017-08-15 14:28:36 -04:00
Steve Smith
434da3f257 Fixing Layout and Updating book (#35)
* Auto stash before merge of "master" and "origin/master"

Using catalog CSS files regradless of environment

* Removed duplicate paragraph
2017-08-14 16:37:45 -04:00
Steve Smith
f0c8f3e234 App Startup (#34)
* Adding ConfigureProduction as copy of ConfigureDevelopment.

* Configuring bundling and updating default appsetting value to work for local images (the setting is still useful for CDN scenarios).
2017-08-08 20:37:51 -04:00
Steve Smith
a8f150aac7 Implementing Registration. (#32) 2017-08-07 15:21:03 -04:00
Steve Smith
97ef1c79a0 Controller cleanup (#30)
* Cleaning up routes.

* Adding signout functionality

* Added simple checkout behavior
2017-08-07 14:12:48 -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
084db74c77 data refactor (#27)
* Refactoring to move data access code into Infrastructure project

* Fixing namespaces
2017-08-07 10:08:41 -04:00
Steve Smith
b67f8cc050 Cart Updates (#26)
* ardalis/cart-updates

Updating how items are added to cart and displayed in cart.

* Cleaning up UI
2017-08-07 09:49:12 -04:00
Steve Smith
acdc072cb9 Merge branch 'ardalis/basket-add' into master 2017-07-27 11:39:42 -04:00
Steve Smith
11ace4ea35 cleaning up controllers (#19) 2017-07-26 17:43:32 -04:00
Steve Smith
af406f86ef Updated logging
Moved images to use static files
Got login working with demo user.
2017-07-26 17:30:29 -04:00
Steve Smith
925ad6b557 Cleaning things up and getting add item to cart working for anonymous or authenticated users. 2017-07-24 16:45:54 -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