-
Notifications
You must be signed in to change notification settings - Fork 188
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update mock file to match rename of graph service struct
- Loading branch information
Bob Aman
committed
Jan 18, 2019
1 parent
e67f1a6
commit 9c4f15e
Showing
3 changed files
with
14 additions
and
14 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package providers | ||
|
||
// MockMSGraphService is an implementation of GraphService to be used for testing | ||
type MockMSGraphService struct { | ||
Groups []string | ||
GroupsError error | ||
} | ||
|
||
// GetGroups mocks the GetGroups function | ||
func (ms *MockMSGraphService) GetGroups(string) ([]string, error) { | ||
return ms.Groups, ms.GroupsError | ||
} |