Commit Graph
100 Commits
Author SHA1 Message Date
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
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 SmithandGitHub 8169d2f485 WIP (#95) 2018-05-29 10:05:50 -04:00
Steve SmithandGitHub 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 SmithandGitHub a63f0ad921 Updating version info in README 2018-05-19 17:30:40 -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 SmithandGitHub f6f85869fb Updating Infrastructure to NetStandard (#86) 2018-04-09 10:13:50 -04:00
Steve SmithandGitHub c276b11ca0 Ardalis/cleanup (#75)
* Replace Magic String with nameof

* Remove commented code
2018-01-04 11:18:50 -05:00
Steve SmithandGitHub 9d32c48c30 Replace Magic String with nameof (#74) 2018-01-04 10:57:53 -05:00
Steve SmithandGitHub 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 SmithandGitHub 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 SmithandGitHub 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 SmithandGitHub 4a549c3401 Cleaning up Checkout auth (#64) 2017-10-23 13:51:27 -04:00
Steve SmithandGitHub 749a37d6d9 Minor cleanup (#63) 2017-10-23 12:11:55 -04:00
Steve SmithandGitHub 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 SmithandGitHub 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 SmithandGitHub 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 SmithandGitHub 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 SmithandGitHub 32950aa175 Cleaning up EF 2.0 Migrations (#57)
Moving Seed logic to Program.cs
2017-10-18 14:25:10 -04:00
Steve Smith 8de663eab6 Merge branch 'netcore2.0' 2017-10-18 13:19:40 -04:00
Steve SmithandGitHub 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
Steve Smith 3bf1454025 Remove non-icon basket link from header
Add comments to EF query logic
2017-09-25 22:43:22 -04:00
Steve SmithandGitHub 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 SmithandGitHub 5c7f590ce0 Merge branch 'master' into netcore2.0 2017-09-22 11:28:33 -04:00
Steve SmithandGitHub d776ce7cb2 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:25:32 -04:00
Steve SmithandGitHub db6ad75aee Adding Order Features (#47)
* Working on order model binding from checkout page - WIP

* Small layout tweaks (#43)

* Updating quantities implemented.

* Fixed basket widget count
2017-09-13 18:10:19 -04:00
Steve SmithandGitHub ed5d17672d 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.
2017-08-28 12:15:18 -04:00
Steve SmithandGitHub 19c10ed0e5 Update README.md 2017-08-25 08:33:37 -04:00
Steve SmithandGitHub 26a43cd4ad Fixing typo; adding migration creation notes 2017-08-23 15:15:54 -04:00
Steve SmithandGitHub eefc8170cb Updating and testing migrations (#42)
Updating readme to describe how to run migrations
2017-08-22 17:58:53 -04:00
Steve SmithandGitHub 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 SmithandGitHub 3a95375ae7 Renaming Cart to Basket (#38) 2017-08-15 14:28:36 -04:00
Steve SmithandGitHub 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 SmithandGitHub 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 SmithandGitHub a8f150aac7 Implementing Registration. (#32) 2017-08-07 15:21:03 -04:00
Steve SmithandGitHub 1193af57ef update readme (#31)
* Updating readme

* Fixing broken link in eBook
2017-08-07 14:33:09 -04:00
Steve SmithandGitHub 97ef1c79a0 Controller cleanup (#30)
* Cleaning up routes.

* Adding signout functionality

* Added simple checkout behavior
2017-08-07 14:12:48 -04:00
Steve SmithandGitHub 4385c2f291 Adding more spec tests (#29) 2017-08-07 13:41:57 -04:00
Steve SmithandGitHub 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 SmithandGitHub 084db74c77 data refactor (#27)
* Refactoring to move data access code into Infrastructure project

* Fixing namespaces
2017-08-07 10:08:41 -04:00
Steve SmithandGitHub 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 SmithandGitHub b52048b74d Fixing (ignoring) test (#24) 2017-07-28 23:39:38 -04:00
Steve SmithandGitHub 12cbd595d0 Commenting out unused test. (#23) 2017-07-28 23:27:41 -04:00
Steve SmithandGitHub acdc072cb9 Merge branch 'ardalis/basket-add' into master 2017-07-27 11:39:42 -04:00
Steve SmithandGitHub 11ace4ea35 cleaning up controllers (#19) 2017-07-26 17:43:32 -04:00
Steve SmithandGitHub b645cb35c1 Merge pull request #18 from dotnet-architecture/ardalis/login
Adding Login and Logging Features
2017-07-26 17:35:40 -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 SmithandGitHub fb95b37da8 Merge pull request #17 from dotnet-architecture/ardalis/updates
Updating packages and eBook
2017-06-20 07:49:13 -04:00
Steve Smith 239bdef8d8 Updating eBook 2017-06-20 07:47:25 -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 SmithandGitHub 6036d055f8 Merge pull request #14 from dotnet-architecture/ardalis/tooling-packages
Removing VisualStudio CodeGen package references and tooling references.
2017-05-26 13:32:48 -04:00
Steve Smith 1f00472b52 removing VisualStudio CodeGen package references and tooling references. 2017-05-26 13:31:48 -04:00
Steve SmithandGitHub 76eac51c3b Merge pull request #10 from dotnet-architecture/ardalis/bookupdate1
updated eBook
2017-05-12 11:32:31 -04:00
Steve Smith 8c1590cdc9 updated eBook 2017-05-12 11:32:00 -04:00
Steve SmithandGitHub 52bd7bc932 Merge pull request #7 from NRKirby/small-fix
Use camel case method parameters
2017-05-11 21:53:46 -04:00
Steve SmithandGitHub b7ca6db0f9 Merge pull request #9 from dotnet-architecture/ardalis/bookupdate
Updating book with Cesar's previous fixes.
2017-05-11 21:53:24 -04:00
Steve Smith 552fe00049 Updating book with Cesar's previous fixes. 2017-05-11 21:52:22 -04:00
Steve Smith e4af8acd77 Merge branch 'ardalis/bookupdates' 2017-05-11 21:48:36 -04:00
Steve Smith e01098b710 book updates 2017-05-11 21:42:27 -04:00
Steve Smith 4e4c218fb2 Fixing more TODOs and TBDs in the book 2017-05-04 14:59:55 -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 SmithandGitHub 22cd5ed2a4 Merge pull request #6 from dotnet-architecture/ardalis/tests
Adding unit tests
2017-04-30 08:27:20 -04:00
Steve Smith 3b1e46d4d6 Implemented CatalogImageMissingException in LocalFileImageService 2017-04-30 08:26:08 -04:00
Steve Smith bc088beb83 Fixed route 2017-04-30 08:20:27 -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 a277a21926 eBook updated - working on testing chapter
Updated VS version and fixed a typo.
2017-04-24 11:57:08 -04:00
Steve Smith b3bb8c9c4e Adding test projects 2017-04-24 08:33:05 -04:00
Steve Smith a047e7d8e3 Merge branch 'master' into ardalis/basket
# Conflicts:
#	docs/Architecting and Developing Modern Web Applications with ASP.NET Core and Azure.pdf
2017-04-23 16:27:25 -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 936e0563ee Updated Chapter 7. 2017-04-21 22:00:56 -04:00
Steve Smith dc230e2f67 Updating eBook. Adding to Security subsection. 2017-04-21 13:26:16 -04:00
Steve Smith a69afa2264 Switching to InMemory for Mac 2017-04-21 00:06:40 -04:00
Steve Smith 222319f6bc Merge branch 'master' into ardalis/basket 2017-04-20 22:44:25 -04:00
Steve Smith 408c5d97ec Working on wiring up identity and basket 2017-04-20 17:04:03 -04:00
Steve SmithandGitHub 6694aa4968 Merge pull request #5 from rogersachan/patch-1
Use markdown formatting for links (README)
2017-04-19 15:05:35 -04:00
Steve Smith e4b702141b Updating logo 2017-04-18 16:04:14 -04:00
Steve Smith e019654143 Adding cart/basket support and applicationuser (without EF requirement) 2017-04-17 23:37:42 -04:00
Steve Smith c1d19a09e4 Responding to feedback. Fixes #3. Continuing work on ASP.NET Core solution setup section 2017-04-14 16:52:35 -04:00
Steve Smith 1e208072e7 Updated based on feedback; higher res images now. 2017-04-05 19:37:44 -04:00
Steve Smith 21962224c9 Fixing first page typo 2017-04-04 13:39:57 -04:00
Steve Smith 013d1c10ce Fixes #2 2017-04-04 09:45:01 -04:00
Steve Smith 7add1f4c36 ebook update 2017-03-31 14:11:23 -04:00
Steve Smith cb362ac1b7 Updating README 2017-03-29 15:06:41 -04:00
Steve Smith 7d13341871 Quick update. 2017-03-29 14:58:01 -04:00