Skip to content

Commit

Permalink
Update RateServiceTests.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
AlirezaEslamikhah committed Dec 28, 2023
1 parent b6463b3 commit d008d02
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/VakilPors/VakilPors.Test/Core/Services/RateServiceTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -144,5 +144,17 @@ public async Task update_rate()


}

[Fact]
public async Task DeleteRateAsync()
{
//Arrange
var rateid = 1;
var rate = new Rate();
appUnitOfWorkMock.Setup(x => x.RateRepo.FindAsync(rateid)).ReturnsAsync(rate);
appUnitOfWorkMock.Setup(x => x.RateRepo.Remove(rate));
//Act
await rateService.DeleteRateAsync(rateid);
}
}
}

0 comments on commit d008d02

Please # to comment.