Commit Graph

42101 Commits

Author SHA1 Message Date
Suhas Joshi f7737475f4 Corrected build file 2014-07-25 11:57:32 -07:00
Hao Kung 7942d2bc82 Pass user to IPasswordHasher 2014-07-25 11:57:13 -07:00
dougbu cd0285183e Fix StyleCop issues 2014-07-25 10:51:40 -07:00
Pranav K 5bace02518 Removing BaseController from MusicStore
TryUpdateModelAsync was added to Controller type which removes the need
for this type
2014-07-25 10:13:51 -07:00
Pranav K 24f74222f5 Introducing Controller.TryUpdateModel
This changeset reintroduces some of the overloads for
Controller.TryUpdateModel.

Fixes #415
2014-07-25 10:08:44 -07:00
Pranav K da0bf6f7d8 Commonizing code in option provider
* Adding ValueProviderFactoryProvider and CompositeValueProviderFactory to
  maintain parity in pattern with other option types.

Fixes #818
2014-07-25 06:52:00 -07:00
Pranav K 92e26cf8e0 RazorView should not create new ViewContext when rendering pages.
For pages that can pop back (e.g. Partial pages \ View Components), the
invoking component already creates a new ViewContext. ViewStart, Pages
and Layouts need to share the same Layout. This is required for sharing
ViewData values (such as title).

Fixes #861
2014-07-25 06:37:53 -07:00
dougbu 3746e44dc3 Add more `ModelMetadata` and HTML helper tests
- add `CachedDataAnnotationsMetadataAttributesTest`
- add `CachedDataAnnotationsModelMetadataTest`
- confirm more default property values in `ModelMetadataTest`
- confirm use of `DisplayName` in `ModelMetadataTest`
- add `HtmlHelperDisplayNameExtensionsTest`
- add `HtmlHelperLabelExtensionsTest`
- add `HtmlHelperNameExtensionsTest`
2014-07-24 18:32:35 -07:00
dougbu 48085eea08 Correct `ModelMetadata.IsRequired` to honour overrides
- subclasses would not calculate a value because `ModelMetadata` constructor
  set this property
- meant presence of a `[Required]` attribute in the model was ignored
2014-07-24 18:32:13 -07:00
dougbu 80a27c6f3b Add `ModelMetadata.DisplayName` property
- value comes from `Name` property of `[Display]` attribute
- use new property in `@Html.DisplayName()` and `@Html.Label()`; remove associated TODO comments
2014-07-24 18:31:48 -07:00
dougbu f4b582f654 Remove incorrect override of `ModelMetadata.GetDisplayName()`
- this method delegates to a number of `ModelMetadata` properties
- no use cases for overriding; should not be `virtual`
- `ModelMetadata.DisplayName` override using `DisplayAttribute.GetName()` coming in next commit
2014-07-24 16:49:02 -07:00
Chris Ross 7be9cefc4c QueryBuilder Add overload for IEnumerable. 2014-07-24 16:24:44 -07:00
Suhas Joshi 907f05acf5 Added try catch around logging statement 2014-07-24 16:17:24 -07:00
Chris Ross 6fab49b6e0 #52 - Enable parallel tests by using dynamic ports. 2014-07-24 16:13:03 -07:00
Suhas Joshi f61dd99c64 Merge pull request #178 from suhasj/AddArch
Added support for kre architecture
2014-07-24 15:44:39 -07:00
Suhas Joshi d7d7c83be7 Merge branch 'AddArch' of https://github.com/suhasj/MusicStore-1 into AddArch 2014-07-24 15:40:12 -07:00
Suhas Joshi ae7fae0bce Formatted document and added bug numbers 2014-07-24 15:40:02 -07:00
Suhas Joshi d1f5802c87 Fixed check to install x64 KRE 2014-07-24 15:39:59 -07:00
Suhas Joshi 77a9885118 Handled starting IISExpress based on architecture 2014-07-24 15:39:55 -07:00
Suhas Joshi 759eee9734 Added support for kre architecture 2014-07-24 15:39:51 -07:00
Suhas Joshi c391427f65 Formatted document and added bug numbers 2014-07-24 15:29:38 -07:00
Suhas Joshi fb32578f37 Fixed check to install x64 KRE 2014-07-24 14:40:44 -07:00
Suhas Joshi c74bb9258a Handled starting IISExpress based on architecture 2014-07-24 14:38:34 -07:00
ajcvickers 7f2ae65e3d Reacting to ModelBuilder API change 2014-07-24 14:32:22 -07:00
ajcvickers c28cae9e94 React to EF ModelBuilder API change 2014-07-24 14:28:51 -07:00
ajcvickers fec7e55cbf Fix typo 2014-07-24 14:19:39 -07:00
ajcvickers 50a32f0cb8 Reacting to ModelBuilder API change 2014-07-24 14:15:02 -07:00
harshgMSFT b1912d799c Moving to RandomNumberGenerator as CryptRandom is not supported in Mono 2014-07-24 14:07:58 -07:00
Suhas Joshi 6fb56ccdad Added support for kre architecture 2014-07-24 12:00:39 -07:00
Pranav K 47d227cbf2 Modify FindView and FindPartialView to accept ActionContext
Fixes #787
2014-07-24 11:48:23 -07:00
Chris Ross af279f6d2b #65 Add a QueryBuilder. 2014-07-24 09:10:34 -07:00
harshgMSFT a2561281b7 Adding MvcOptions.OutputFormatters property. 2014-07-23 17:46:17 -07:00
harshgMSFT 8ed7dadfd8 Fixing project.json in Mvc 2014-07-23 17:22:46 -07:00
harshgMSFT 1df4738a19 Adding OutputFormatter base class 2014-07-23 16:50:22 -07:00
Pranav K e28adbfb3d ViewStarts need to be executed as part of View execution
Fixes #834
2014-07-23 16:45:25 -07:00
harshgMSFT b8ab5c5063 Http Abstractions for parsing Http headers needed for conneg. 2014-07-23 16:28:32 -07:00
harshgMSFT 80ffd26465 Adding abstractions for request headers
viz. Accept, Accept-Charset and Content-Type.
2014-07-23 14:54:15 -07:00
Hao Kung fe30a0418e React to Identity changes 2014-07-23 12:36:21 -07:00
Hao Kung 07f72c2fb9 Rename Add[HttpSignIn] -> AddAuthentication
Also DefaultAuthenticationTypes.ApplicationCookie ->
ClaimsIdentityOptions.DefaultAuthenticationType
2014-07-23 12:28:19 -07:00
Hao Kung 076ea0385f Add Email and Phone TOTP providers
Now that HMACSHA1 is available on K
2014-07-23 11:57:14 -07:00
Chris Ross 53e38e2a23 #45 Add friendly header collection APIs for people using WebListener directly. 2014-07-23 09:18:27 -07:00
Chris Ross 384d54577e Remove unused field. 2014-07-23 09:14:34 -07:00
Praburaj b440d4ff66 Use InMemoryStore if the sample is being run on Mono
Detecting if the application is running on mono and using InMemoryStore instead of SqlServer.
2014-07-22 18:02:22 -07:00
Praburaj 863888bfb4 Fixing a test failure due to a recent change.
Adding some delay for the selfhost tests. With the recent change of merging the dbs selfhost based tests start even before the data is populated into the db & application start. Adding a slight delay to allow the setup finish.
And fixing a test bug that was not surfacing. Was checking with a fixed album id. This worked before as the id created was always 453.
2014-07-22 17:23:17 -07:00
Praburaj 91cc369f4f Fixing CopyAspNetLoader batch file to consider the new location of AspNet.Loader.dll
With a recent change Aspnet.Loader.dll will be restored to %userprofile%\.kpm\packages. Fixing the batch file accordingly.
2014-07-22 16:47:03 -07:00
Praburaj 3c0eefe12e Merging the MusicStore & MusicStoreIdentity Db into one.
This has been a feedback from identity team for a while. Just got time to do it now.
2014-07-22 16:44:23 -07:00
Ryan Nowak d13f6474d8 adding a few tests for areas 2014-07-21 14:52:44 -07:00
Ryan Nowak 1b07c89322 cr feedback 2014-07-21 14:52:41 -07:00
Ryan Nowak 745239f09f Adding Attribute Routing Link Generation 2014-07-21 14:52:38 -07:00
Hao Kung 661464004b Remove old files 2014-07-21 10:44:10 -07:00