public async Task AddAsyncTest() { var job = _fixture.Create <JobRepositoryModel>(); _tableStorageClientMock .Setup(x => x.DoTableInsertOrReplaceAsync( It.IsAny <JobTableEntity>(), It.IsAny <Func <JobTableEntity, object> >())) .ReturnsAsync(new TableStorageResponse <object> { Status = TableStorageResponseStatus.Successful }); await _repository.AddAsync(job); _tableStorageClientMock .Verify(x => x.DoTableInsertOrReplaceAsync( It.Is <JobTableEntity>(e => e.JobId == job.JobId && e.FilterName == job.FilterName && e.JobName == job.JobName && e.FilterId == job.FilterId && e.PartitionKey == job.JobId && e.RowKey == job.FilterId), It.IsAny <Func <JobTableEntity, object> >())); }