forked from hyperledger/fabric-sdk-go
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mockcorecontext.go
36 lines (29 loc) · 903 Bytes
/
mockcorecontext.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/*
Copyright SecureKey Technologies Inc. All Rights Reserved.
SPDX-License-Identifier: Apache-2.0
*/
package mocks
import (
"github.com/hyperledger/fabric-sdk-go/pkg/common/providers/core"
"github.com/hyperledger/fabric-sdk-go/pkg/common/providers/msp"
)
// MockCoreContext is a mock core context
type MockCoreContext struct {
MockConfig core.CryptoSuiteConfig
MockCryptoSuite core.CryptoSuite
MockUserStore msp.UserStore
MockSigningManager core.SigningManager
MockCryptoSuiteConfig core.CryptoSuiteConfig
}
// CryptoSuite ...
func (m *MockCoreContext) CryptoSuite() core.CryptoSuite {
return m.MockCryptoSuite
}
// SigningManager ...
func (m *MockCoreContext) SigningManager() core.SigningManager {
return m.MockSigningManager
}
//CryptoSuiteConfig ...
func (m *MockCoreContext) CryptoSuiteConfig() core.CryptoSuiteConfig {
return m.MockCryptoSuiteConfig
}