public async Task DeleteEntityTest() { var fakeRepositoryMock = new Mock <IActorsContext>(); fakeRepositoryMock.Setup(x => x.GetActorsList()).ReturnsAsync(vars); var actorService = new ActorsService(fakeRepositoryMock.Object); await actorService.DeleteActor(2); }