-
Notifications
You must be signed in to change notification settings - Fork 1
HEEDLS-509 Added add delegate group page #612
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
DigitalLearningSolutions.Web/Controllers/TrackingSystem/Delegates/DelegateGroupsController.cs
Show resolved
Hide resolved
DigitalLearningSolutions.Data/DataServices/GroupsDataService.cs
Outdated
Show resolved
Hide resolved
DigitalLearningSolutions.Data.Tests/DataServices/GroupsDataServiceTests.cs
Outdated
Show resolved
Hide resolved
DigitalLearningSolutions.Data.Tests/DataServices/GroupsDataServiceTests.cs
Outdated
Show resolved
Hide resolved
...lLearningSolutions.Web/Views/TrackingSystem/Delegates/DelegateGroups/AddDelegateGroup.cshtml
Outdated
Show resolved
Hide resolved
...olutions.Web/ViewModels/TrackingSystem/Delegates/DelegateGroups/AddDelegateGroupViewModel.cs
Show resolved
Hide resolved
… to 100 characters
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
...lLearningSolutions.Web/Views/TrackingSystem/Delegates/DelegateGroups/AddDelegateGroup.cshtml
Outdated
Show resolved
Hide resolved
...lLearningSolutions.Web/Views/TrackingSystem/Delegates/DelegateGroups/AddDelegateGroup.cshtml
Outdated
Show resolved
Hide resolved
...lLearningSolutions.Web/Views/TrackingSystem/Delegates/DelegateGroups/AddDelegateGroup.cshtml
Outdated
Show resolved
Hide resolved
...lLearningSolutions.Web/Views/TrackingSystem/Delegates/DelegateGroups/AddDelegateGroup.cshtml
Outdated
Show resolved
Hide resolved
DigitalLearningSolutions.Data/DataServices/GroupsDataService.cs
Outdated
Show resolved
Hide resolved
DigitalLearningSolutions.Data/DataServices/GroupsDataService.cs
Outdated
Show resolved
Hide resolved
DigitalLearningSolutions.Data.Tests/DataServices/GroupsDataServiceTests.cs
Outdated
Show resolved
Hide resolved
|
|
||
| // Then | ||
| result.Should().Be(returnId); | ||
| A.CallTo(() => groupsDataService.AddDelegateGroup(A<GroupDetails>._)).MustHaveHappenedOnceExactly(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah - should we actually assert that we set group details correctly? (including linkeToField etc defaults)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ooh good point (although at that point the test will basically be line-for-line recreating the method)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good - just need to change the delegate groups test to assert the GroupDetails are set correctly. No need for rereview though.
JIRA link
HEEDLS-509
Description
Added a new page and data service function to create a new delegate group, and linked the add button on the delegate groups page to it.
Screenshots
Developer checks
I have: