Commit Graph

22 Commits

Author SHA1 Message Date
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
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
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
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
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
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
dfe0106ce3 Unit tests working; added logger adapter. 2017-04-30 08:06:06 -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
708e85233e Updated data chapter with EF, caching, NoSQL
Added caching support and some diagnostic code.
2017-04-23 16:24:19 -04:00
Steve Smith
a69afa2264 Switching to InMemory for Mac 2017-04-21 00:06:40 -04:00
Steve Smith
408c5d97ec Working on wiring up identity and basket 2017-04-20 17:04:03 -04:00
Steve Smith
d48d8bf24d removing unused code 2017-03-22 21:44:40 -04:00
Steve Smith
884f7c0cfb adding initial project and solution files 2017-03-22 20:58:43 -04:00