Created
April 3, 2020 01:21
-
-
Save rafaeldalsenter/e3eba46aa6ee1a6468389e203626c4c4 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| private ICreateNetflixTitleServices MockServiceForCreate() | |
| { | |
| var mockCassandraContext = new Mock<ICassandraContext>(); | |
| mockCassandraContext | |
| .Setup(m => m.InsertAsync<NetflixTitle>(It.IsAny<NetflixTitle>())) | |
| .Returns(() => Task.CompletedTask); | |
| return new CreateNetflixTitleServices(mockCassandraContext.Object); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment