Skip to content

Instantly share code, notes, and snippets.

@rafaeldalsenter
Created April 3, 2020 01:21
Show Gist options
  • Select an option

  • Save rafaeldalsenter/e3eba46aa6ee1a6468389e203626c4c4 to your computer and use it in GitHub Desktop.

Select an option

Save rafaeldalsenter/e3eba46aa6ee1a6468389e203626c4c4 to your computer and use it in GitHub Desktop.
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