#7912198 rename methods in tests

This commit is contained in:
ngfrolov 2022-11-23 17:21:47 +05:00
parent 4277850156
commit f88307f7b9

View File

@ -72,7 +72,7 @@ namespace AsbCloudWebApi.Tests.ServicesTests
[Fact] [Fact]
public async Task GetWellFinalDocument_return_collection_rows() public async Task GetWellFinalDocument_return_collection_rows()
{ {
var data = await service.GetByWellId(90, 1,CancellationToken.None); var data = await service.GetByWellIdAsync(90, 1,CancellationToken.None);
Assert.NotNull(data); Assert.NotNull(data);
} }
@ -86,7 +86,7 @@ namespace AsbCloudWebApi.Tests.ServicesTests
[Fact] [Fact]
public async Task GetHistoryFileByIdCategory_return_data_hitory() public async Task GetHistoryFileByIdCategory_return_data_hitory()
{ {
var data = await service.GetFilesHistoryByIdCategory(90, 10018, CancellationToken.None); var data = await service.GetFilesHistoryByIdCategoryAsync(90, 10018, CancellationToken.None);
Assert.NotNull(data); Assert.NotNull(data);
} }
@ -94,7 +94,7 @@ namespace AsbCloudWebApi.Tests.ServicesTests
public async Task SaveCategoryFile_return_id_edit_record() public async Task SaveCategoryFile_return_id_edit_record()
{ {
var stream = new FileStream("D:\\test\\test.txt", FileMode.Open); var stream = new FileStream("D:\\test\\test.txt", FileMode.Open);
var data = await service.SaveCategoryFile(21, 10018, 78, stream, "test.txt", CancellationToken.None); var data = await service.SaveCategoryFileAsync(21, 10018, 78, stream, "test.txt", CancellationToken.None);
Assert.Equal(21, data); Assert.Equal(21, data);
} }
} }