Commit Graph

120 Commits

Author SHA1 Message Date
Cédric Michel
fdb4869c0b add FirstAsync in respository (#370)
* add FirstAsync in respository

* use new FirstOrDefaultAsync() method from repository
2020-05-05 10:23:57 -04:00
Cédric Michel
3e228035c0 Feature/respect encapsulation (#349)
* resolve osbsolete method

* put all properties as private, align unit test

* fix version of version in MD, add instruction to install ef tool

* fix url stored
2020-02-03 12:47:59 -07:00
David Henley
0a93e61f03 Rethrow the exception to be caught in Program.cs (#344) 2020-01-07 08:32:25 -07:00
Eric Fleming
e53117b952 Updating to netcore3.1 (#338)
* Updating to .NET Core 3.1

* Updating nuget packages

* Updating dockerfile for 3.1
2019-12-17 11:08:55 -05:00
Eric Fleming
f3f74a342e Admin page (#324)
* Updates based on documentation

* Getting the build passing

* Getting app functioning

* A few cleanups to confirm it's working as expected

* Fixing functional tests

* Updating dockerfile for 3.0

* Functional Tests now run sequentially

* Updating to latest version of moq

* Adding migration for post 3.0 upgrades

* Removing commented out lines

* Moving address and catalogitemordered configuration in to classes that own them

* Adding admin user

* Adding admin catalog screen

- will also only display menu option if user is logged in as an admin

* WIP - squash this

* Allow user to edit a catalog item

* Adding entry for new service

* Invalidating cache after catalog item update

- also a little bit of cleanup

* Fixing bad merge

* Removing Picture Uri and making Id readonly

* Adjusting style in menu dropdown so all options are shown

* Creating Cache helpers with unit tests
2019-12-10 22:04:59 -05:00
Eric Fleming
4442015835 Netcore3.0 (#323)
* Updates based on documentation

* Getting the build passing

* Getting app functioning

* A few cleanups to confirm it's working as expected

* Fixing functional tests

* Updating dockerfile for 3.0

* Functional Tests now run sequentially

* Updating to latest version of moq

* Adding migration for post 3.0 upgrades

* Removing commented out lines

* Moving address and catalogitemordered configuration in to classes that own them

* Minor cleanups
2019-11-06 14:17:56 -05:00
Moien Tajik
96e16ca3e7 Made AddAsync method fully asynchronous 2019-10-19 01:27:42 +03:30
Eric Fleming
c370b8affb Add missing migration (#298) 2019-09-11 08:39:54 -04:00
Eric Fleming
d4993abd5f Rolling back change to use extension method to wiret up config
- The change is a better way to do the configuration, but there is
currently an issue where the Value Objects are not being honored and
being treated like Entitys. When this happens, the container will throw
errors when trying to start up because the entitys are lacking primary
keys (when they don't need them).
2019-08-24 21:55:41 -04:00
Steve Smith
305be555db Updated packages; Using configuration classes for EF Core. 2019-08-18 15:16:31 -04:00
Eric Fleming
6eba16b09b Merge pull request #280 from JohnCOsborne/master
Capitalized isPaging property
2019-07-29 20:25:25 -04:00
Lesair Valmont
f7ef0aca37 Closes #281. (#282)
Typo in ConfigurateCatalogItemOrdered.
2019-07-29 14:46:41 -04:00
John Caleb Osborne
b5defc8d34 Capitalized isPaging property 2019-07-29 05:16:02 -04:00
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
8924df0e1b Adding migration for updating defaults 2019-05-31 21:48:25 -04:00
Eric Fleming
9ba78f5187 Setting attributees to required
- This is because they currently do not allow nulls and we don't want to lose that
2019-05-31 21:47:17 -04:00
Eric Fleming
aaac128e7d Updating the default data types of some decimal values to fix errors 2019-05-31 21:41:40 -04:00
Eric Fleming
468df47c22 Adding a GroupBy specification example 2019-04-20 21:49:57 -04:00
Eric Fleming
794b9d7ab8 Updated NuGet Packages 2019-04-05 22:10:53 -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
1152f4a45d Remove GetSingleBySpec 2019-03-01 22:16:31 -05:00
Eric Fleming
1ba52becaa Remove count 2019-03-01 22:12:43 -05:00
Eric Fleming
427961095a Remove Delete 2019-03-01 22:11:19 -05:00
Eric Fleming
eea7f54ded Removing update 2019-03-01 22:10:32 -05:00
Eric Fleming
dd0a9a598d Removing Add 2019-03-01 22:09:07 -05:00
Eric Fleming
b8f1ac977d Removing ListAll 2019-03-01 21:46:48 -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
Eric Fleming
6b12999df1 Merge branch 'master' into pr/119 2019-01-22 20:33:06 -05:00
Eric Fleming
9c65c4e3f7 Updates to existing PR
- updating City value to be 100 instead of 189. The longest city name in the world is 85 characters long, so making it 100 just in case.
- Fixed typo in file name: constrains to constraints
2019-01-22 20:28:56 -05:00
BlackFrog1
8e748a4c62 change relative image source path (../) to use ~/ for webroot. (#184) 2019-01-11 09:48:09 -05: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
Eric Fleming
c7c16c4265 Merge pull request #140 from hemantkd/Removing-unused-directives
Removed all the unused directives in the Solution with the assistance…
2018-12-14 19:54:06 -05:00
Steve Smith
1fe6becfcc Reformatting 2018-11-27 10:13:43 -05:00
Steve Smith
9cca5553e2 Adding one more set of curly braces 2018-11-27 10:12:22 -05:00
Steve Smith
fe0471eea4 Adding curly braces for if statements 2018-11-27 10:11:41 -05:00
Hemant Kumar Dundigalla
218c832583 Merge branch 'master' into Removing-unused-directives 2018-11-19 16:32:04 +00:00
Fati Iseni
04530db118 Paging infrastructure implemented through specifications. (#151)
* Paging criterias added in BaseSpecification. New paginated specification added (CatalogFilterPaginatedSpecification) . EFRepository cleaned up and paging implementation added. Usage of the new paging infrastructure in CatalogService (Web and WebRazor).

* Use IReadOnlyList<T> instead of List<T> as return type from repositories.

* - Ordering possibility added in the specification.
- Evaluation of the specification placed in separate class.
2018-11-09 01:46:58 -05: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
Matthias Beerens
77540caf29 Add max length and required constraints 2018-07-25 21:07:04 +02: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
8169d2f485 WIP (#95) 2018-05-29 10:05:50 -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
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