public async void Delete() { var mock = new ServiceMockFacade <ILessonStatusRepository>(); var model = new ApiLessonStatusRequestModel(); mock.RepositoryMock.Setup(x => x.Delete(It.IsAny <int>())).Returns(Task.CompletedTask); var service = new LessonStatusService(mock.LoggerMock.Object, mock.RepositoryMock.Object, mock.ModelValidatorMockFactory.LessonStatusModelValidatorMock.Object, mock.BOLMapperMockFactory.BOLLessonStatusMapperMock, mock.DALMapperMockFactory.DALLessonStatusMapperMock, mock.BOLMapperMockFactory.BOLLessonMapperMock, mock.DALMapperMockFactory.DALLessonMapperMock); ActionResponse response = await service.Delete(default(int)); response.Should().NotBeNull(); mock.RepositoryMock.Verify(x => x.Delete(It.IsAny <int>())); mock.ModelValidatorMockFactory.LessonStatusModelValidatorMock.Verify(x => x.ValidateDeleteAsync(It.IsAny <int>())); }