-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fixed bug when computing assignments based on existing assignments * Use efficient and simple algorithm when no predefined assigments exist.
- Loading branch information
Showing
8 changed files
with
194 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
src/TutorBot.Cli/Domain/Exceptions/NonUniqueValuesException.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
using TutorBot.Infrastructure.Exceptions; | ||
|
||
namespace TutorBot.Domain.Exceptions; | ||
|
||
public class NonUniqueValuesException<T> : DomainException | ||
{ | ||
public IEnumerable<T> NonUniqueValues { get; } | ||
|
||
public NonUniqueValuesException(string message, IEnumerable<T> nonUniqueValues) : base(message) | ||
{ | ||
NonUniqueValues = nonUniqueValues; | ||
} | ||
} |
8 changes: 8 additions & 0 deletions
8
src/TutorBot.Cli/Domain/Exceptions/ReviewerAssignmentException.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
namespace TutorBot.Domain.Exceptions; | ||
|
||
public class ReviewerAssignmentException : DomainException | ||
{ | ||
public ReviewerAssignmentException(string message) : base(message) | ||
{ | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters