-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: rename streetname to same streetname
- Loading branch information
Showing
6 changed files
with
111 additions
and
2 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
30 changes: 30 additions & 0 deletions
30
...NameRegistry/Municipality/Exceptions/SourceAndDestinationStreetNameAreTheSameException.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,30 @@ | ||
namespace StreetNameRegistry.Municipality.Exceptions | ||
{ | ||
using System; | ||
using System.Runtime.Serialization; | ||
|
||
[Serializable] | ||
public sealed class SourceAndDestinationStreetNameAreTheSameException : StreetNameRegistryException | ||
{ | ||
/// <summary> | ||
/// The streetname id which already exists | ||
/// </summary> | ||
public string StreetNameId { get; } | ||
|
||
public SourceAndDestinationStreetNameAreTheSameException() | ||
{ | ||
StreetNameId = string.Empty; | ||
} | ||
|
||
public SourceAndDestinationStreetNameAreTheSameException(string streetNameId) | ||
{ | ||
StreetNameId = streetNameId; | ||
} | ||
|
||
private SourceAndDestinationStreetNameAreTheSameException(SerializationInfo info, StreamingContext context) | ||
: base(info, context) | ||
{ | ||
StreetNameId = string.Empty; | ||
} | ||
} | ||
} |
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