-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Neo Core UT] Test memory store (#3336)
* test memory store * Update tests/Neo.UnitTests/Neo.UnitTests.csproj Co-authored-by: Shargon <[email protected]> --------- Co-authored-by: Shargon <[email protected]> Co-authored-by: NGD Admin <[email protected]>
- Loading branch information
1 parent
90468e8
commit 60bb9c6
Showing
2 changed files
with
84 additions
and
3 deletions.
There are no files selected for viewing
21 changes: 21 additions & 0 deletions
21
tests/Neo.UnitTests/Persistence/TestMemoryStoreProvider.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,21 @@ | ||
// Copyright (C) 2015-2024 The Neo Project. | ||
// | ||
// TestMemoryStoreProvider.cs file belongs to the neo project and is free | ||
// software distributed under the MIT software license, see the | ||
// accompanying file LICENSE in the main directory of the | ||
// repository or http://www.opensource.org/licenses/mit-license.php | ||
// for more details. | ||
// | ||
// Redistribution and use in source and binary forms with or without | ||
// modifications are permitted. | ||
|
||
using Neo.Persistence; | ||
|
||
namespace Neo.UnitTests.Persistence; | ||
|
||
public class TestMemoryStoreProvider(MemoryStore memoryStore) : IStoreProvider | ||
{ | ||
public MemoryStore MemoryStore { get; set; } = memoryStore; | ||
public string Name => nameof(MemoryStore); | ||
public IStore GetStore(string path) => MemoryStore; | ||
} |
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