public async Task FormBuildRepository_RemoveFormBuildById_Success() { //arrange FormBuild formBuild = new FormBuild("Test", DateTime.Now.AddDays(10)); await _repository.AddAsync(formBuild); await _unitOfWork.SaveChangesAsync(); //act await _repository.RemoveAsync(formBuild.Id); await _unitOfWork.SaveChangesAsync(); FormBuild formRemoved = await _dbContext.FormBuilds.FindAsync(formBuild.Id); //assert Assert.Null(formRemoved); }
public async Task RemoveAsync(int id) { await _repository.RemoveAsync(id); }