Skip to content

Tags: maniserowicz/ProcentCqrs

Tags

14-rake

Toggle 14-rake's commit message
copying www files to output dir (views, scripts etc...)

13-knockout.js

Toggle 13-knockout.js's commit message
using Knockout.js for databindings related to rename operation

12-unit-tests-mspec

Toggle 12-unit-tests-mspec's commit message
moved tests to MSpec (added bat to run tests - R#6 runner not availab…

…le yet)

11-unit-test-investigating-exceptions

Toggle 11-unit-test-investigating-exceptions's commit message
testing scenario of adding the same trainee to the same training mult…

…iple times

first test investigating exceptions thrown from domain

10-unit-test-dependent-on-current-datetime

Toggle 10-unit-test-dependent-on-current-datetime's commit message
testing assigning trainee to a training - first test dependent on cur…

…rent date/time

09-first-unit-tests

Toggle 09-first-unit-tests's commit message
first basic tests, for now using FakeItEasy and XUnit

XUnit will probably be replaced by MSpec once it's R#6 runner is ready

08-issuing-command-via-ajax

Toggle 08-issuing-command-via-ajax's commit message
renamed user row is updated immediately without postback

07-cqrs-command-calling-behavior-on-domain

Toggle 07-cqrs-command-calling-behavior-on-domain's commit message
added all components required to assign Trainee to Training

Notice how the responsibility of saving new TrainingAssignment is thrown out of the Training class. Simply adding new assignemnt to "_trainees" collection would be "nicer", but would also cause NH fetch all already assigned trainees - we do not need that here.
Instead we mark this realtion as "inverse" in NH and let command handler save the new object.
Of course lots of validation and user-friendly error messages are missing at this point, but it does not matter.

06-cqrs-write-side

Toggle 06-cqrs-write-side's commit message
added event handler notifying about new trainings

05-cqrs-read-side

Toggle 05-cqrs-read-side's commit message
fetching data from readmodel in mvc app using Simple.Data - READ side…

… of CQRS