Commit Graph

265 Commits

Author SHA1 Message Date
Antony Male 1beb6dc4d2 Cover a little more code 2014-05-21 12:27:01 +01:00
Antony Male 8a93640ad8 Catch another place were MessageBox.Show was used 2014-05-21 12:23:58 +01:00
Antony Male 0ba6061e59 Move BootstrapperBase's autoLaunch to Start 2014-05-21 12:22:13 +01:00
Antony Male ac7c504d94 Write tests for the updated BoolToVisibilityConverter 2014-05-21 12:04:19 +01:00
Antony Male a2aa1e43b7 Allow MessageBox users to override text on individual buttons on a per-case basis 2014-05-21 11:48:48 +01:00
Antony Male 719653079a Use MessageBox in the integration tests and samples 2014-05-21 11:32:51 +01:00
Antony Male d1ab2d3cbd Style MessageBoxView a bit more.
BoolToVisibilityConverter can now handle any data type
2014-05-21 08:21:47 +01:00
Antony Male 59b484d8d4 Make MessageBoxView.xaml a bit more faithful
Just a little bit of vertical alignment to go
2014-05-20 21:36:26 +01:00
Antony Male 52543a2ef6 Merge branch 'feature/messagebox' into develop
* feature/messagebox:
  Add more unit tests for MessageBox, and convert to use more system types
  Start writing unit tests for the MessageBox stuff
  Document MessageBox and friends
  Simplify MessageBoxViewModel quite a bit
  Start on MessageBox
2014-05-20 21:24:38 +01:00
Antony Male 99f79d1e29 Add more unit tests for MessageBox, and convert to use more system types 2014-05-20 21:24:29 +01:00
Antony Male 2093d9c3cb Start writing unit tests for the MessageBox stuff 2014-05-20 21:24:28 +01:00
Antony Male 99a57578c4 Document MessageBox and friends 2014-05-20 21:24:27 +01:00
Antony Male 83efd02374 Simplify MessageBoxViewModel quite a bit 2014-05-20 21:24:26 +01:00
Antony Male cd3afe56e0 Start on MessageBox 2014-05-20 21:24:25 +01:00
Antony Male 3a3f06ea3e Only set a DisplayName binding if one doesn't already exist 2014-05-20 13:16:11 +01:00
Antony Male 1e6e0c4d98 Update validation rules in Stylet.Samples.ModelValidation 2014-05-20 09:11:11 +01:00
Antony Male 6c015ecd33 Display type's name as DisplayName by default 2014-05-17 12:32:50 +01:00
Antony Male 5823437a28 Support design-time application running 2014-05-16 09:46:16 +01:00
Antony Male ba8d5f338c Use PasswordBoxes in Stylet.Samples.ModelValidation 2014-05-14 12:16:37 +01:00
Antony Male 6b2c8d9583 Fix WindowManager tests 2014-05-13 17:57:15 +01:00
Antony Male bac99ab647 Refactor ValidatingModelBase slightly to support easier overriding 2014-05-13 17:56:54 +01:00
Antony Male 779df6ebcc More work on Stylet.Samples.ModelValidation 2014-05-13 13:29:02 +01:00
Antony Male 9dcce8e164 The validator might not return entries for successful properties. Make sure ValidatingModelBase handles these 2014-05-13 13:28:51 +01:00
Antony Male 43377bbe5d Start work on ModelValidator sample 2014-05-12 17:42:07 +01:00
Antony Male edea424e6b Fix deadlock in ValidatingModelBase (oops) 2014-05-12 17:24:29 +01:00
Antony Male be31aa3b88 Shut up FxCop 2014-05-12 09:55:03 +01:00
Antony Male af06ee5019 Sort out the thread-safety 2014-05-11 22:35:21 +01:00
Antony Male b89c61a91e Move View into the Xaml namespace, so it's accessible through https://github.com/canton7/Stylet 2014-05-11 20:02:21 +01:00
Antony Male 0b75df35ef Rename Execute methods 2014-05-11 19:59:23 +01:00
Antony Male fc4a7fb61c Push coverage up to 99.7% 2014-05-10 20:11:02 +01:00
Antony Male 256198d3c0 Fix Rakefile for people who haven't restored nuget packages yet 2014-05-10 13:39:25 +01:00
Antony Male a39bcfbadb Use Dispatcher instead of SynchronizationContext for synchronization.
It looks like the SynchronizationContext can now change on the same thread
(see http://msdn.microsoft.com/en-us/library/system.windows.basecompatibilitypreferences.reusedispatchersynchronizationcontextinstance%28v=vs.110%29.aspx)
meaning that we can no longer do a reference comparison between SynchronizationContext.Current
and the captured SynchronizationConext to check whether a dispatch is required.
It turns out we shouldn't have been doing this anyway.... So switch to using a Dispatcher,
which does support this stuff.

Additionally, Execute now uses an IDispatcher, which means the implementation can be switched
again in the future. It also makes unit testing easier....
2014-05-09 15:46:03 +01:00
Antony Male 5ca2508fc0 More test stuff 2014-05-09 15:43:55 +01:00
Antony Male 4a527c75d6 Push code coverage up to 98.7%, including integration tests 2014-05-09 14:40:40 +01:00
Antony Male a96ec2a6e4 Add tests for CommandAction and EventAction 2014-05-09 13:59:38 +01:00
Antony Male e38ebee6d1 Add support for running coverage for integration tests 2014-05-09 11:28:36 +01:00
Antony Male 55b23a61ed Couple lines more coverage 2014-05-08 17:44:04 +01:00
Antony Male 1e76531e36 Add test code coverage for ValidatingModelBase 2014-05-08 17:37:33 +01:00
Antony Male d56f3b5c26 Rename IValidatorAdapter back to IModelValidator, as the latter is more description of its end use 2014-05-08 13:52:53 +01:00
Antony Male fe13725062 More unit tests, more code coverage 2014-05-07 17:48:00 +01:00
Antony Male fe377e3955 Provide a decent error if unbound generic type used as an abstract factory, and fill in more coverage 2014-05-07 16:22:51 +01:00
Antony Male 6d3a222249 Fix StyletIoC bug w/ singleton unbound generics, and improve coverage further 2014-05-07 16:11:15 +01:00
Antony Male 43fe090fa9 Add more unit tests 2014-05-07 13:20:36 +01:00
Antony Male d648b264d1 Improve unit test code coverage further 2014-05-07 08:37:48 +01:00
Antony Male 5cc0ee96d2 Fix some rakefile issues 2014-05-06 18:30:04 +01:00
Antony Male 4fa4133248 Improve unit test code coverage some more 2014-05-06 17:42:55 +01:00
Antony Male e945254b14 Rakefile update 2014-05-06 13:19:13 +01:00
Antony Male 3ecb0c38c8 Improve test coverage slightly 2014-05-06 13:11:51 +01:00
Antony Male 30472cffca Don't instantiate a Lazy<IWeakEventManager> in Screen, since we don't need to 2014-05-06 12:46:59 +01:00
Antony Male 48e7de53a6 Fix some namespacing issues 2014-05-06 12:38:38 +01:00