Skip to content

Add MVC common utilities.#1

Merged
NTaylorMullen merged 6 commits intodevfrom
mvccommon
Feb 22, 2015
Merged

Add MVC common utilities.#1
NTaylorMullen merged 6 commits intodevfrom
mvccommon

Conversation

@NTaylorMullen
Copy link

NOTE: Ignore the utility classes and their corresponding tests. These were copied verbatim from Mvc and the only thing modified was their namespace.

  • Added NotNullAttribute
  • Added PropertyActivator
  • Added PropertyHelper
  • Added CopyOnWriteDictionary
  • Added tests for CopyOnWriteDictionary and PropertyHelper. PropertyActivator did not have any tests in Mvc.
  • Updated .gitignore to remove lock files.
  • Updated global.json to include the test folder.

Working on a reaction PR to MVC.

For now users will have to manually include the shared source dependencies (ex: CopyOnWriteDictionary will require the NotNullAttribute package) until aspnet/dnx#1237 is completed.

.gitignore Outdated
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this line is a duplicate; revert changes to this file

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@dougbu
Copy link

dougbu commented Feb 18, 2015

suggest adding PropertyActivator tests before this gets pushed. may otherwise be happily ignored by all since none have ownership (until class needs to change).

@dougbu
Copy link

dougbu commented Feb 18, 2015

@NTaylorMullen
Copy link
Author

@dougbu This is purely a transition PR to move classes from MVC into this Common repo.

NOTE: Ignore the utility classes and their corresponding tests. These were copied verbatim from Mvc and the only thing modified was their namespace.

Please just inspect the structure/project structure of what it entails to build this initial Common repo. If we want to add additional test coverage or add docs that can be done at a separate time, not going to snowball the purpose of this initial PR.

@dougbu
Copy link

dougbu commented Feb 18, 2015

I doubt the few missing docs and tests will ever be added.

in any case, not all of my comments are about docs and tests. definitely need to recreate the *.kproj files for example.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

class should be internal, or it will cause collissions.

@yishaigalatzer
Copy link

@NTaylorMullen
Copy link
Author

Updated. Touched some existing files (not all). Added some tests to validate PropertyActivator

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what context is used in this test? main difference from Activate_InvokesValueAccessorWithExpectedValue() is check of activated value. suggest either adding an assertion to the above test or renaming this to Activate_SetsPropertyValue().

@dougbu
Copy link

dougbu commented Feb 18, 2015

@NTaylorMullen
Copy link
Author

Updated.

@dougbu
Copy link

dougbu commented Feb 19, 2015

⌚ just for another confirmation on need to work around aspnet/dnx#1237 in src project.json files here

@dougbu
Copy link

dougbu commented Feb 20, 2015

hopes about including references to other shared projects dashed :shipit:

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants