-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove some uses of null and replace with optional
- Loading branch information
1 parent
cc81aa7
commit 74cd7bf
Showing
18 changed files
with
299 additions
and
256 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,29 @@ | ||
using System.Collections.Generic; | ||
using AutomaticTypeMapper; | ||
using EOLib.Domain.Character; | ||
using Optional; | ||
|
||
namespace EOLib.Domain.Login | ||
{ | ||
public interface ICharacterSelectorRepository | ||
{ | ||
IReadOnlyList<ICharacter> Characters { get; set; } | ||
|
||
ICharacter CharacterForDelete { get; set; } | ||
Option<ICharacter> CharacterForDelete { get; set; } | ||
} | ||
|
||
public interface ICharacterSelectorProvider | ||
{ | ||
IReadOnlyList<ICharacter> Characters { get; } | ||
|
||
ICharacter CharacterForDelete { get; } | ||
Option<ICharacter> CharacterForDelete { get; } | ||
} | ||
|
||
[AutoMappedType(IsSingleton = true)] | ||
public class CharacterSelectorRepository : ICharacterSelectorRepository, ICharacterSelectorProvider | ||
{ | ||
public IReadOnlyList<ICharacter> Characters { get; set; } | ||
|
||
public ICharacter CharacterForDelete { get; set; } | ||
public Option<ICharacter> CharacterForDelete { get; set; } | ||
} | ||
} |
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
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
Oops, something went wrong.