public async void Delete() { var mock = new ServiceMockFacade <IProxyRepository>(); var model = new ApiProxyRequestModel(); mock.RepositoryMock.Setup(x => x.Delete(It.IsAny <string>())).Returns(Task.CompletedTask); var service = new ProxyService(mock.LoggerMock.Object, mock.RepositoryMock.Object, mock.ModelValidatorMockFactory.ProxyModelValidatorMock.Object, mock.BOLMapperMockFactory.BOLProxyMapperMock, mock.DALMapperMockFactory.DALProxyMapperMock); ActionResponse response = await service.Delete(default(string)); response.Should().NotBeNull(); mock.RepositoryMock.Verify(x => x.Delete(It.IsAny <string>())); mock.ModelValidatorMockFactory.ProxyModelValidatorMock.Verify(x => x.ValidateDeleteAsync(It.IsAny <string>())); }