-
-
Notifications
You must be signed in to change notification settings - Fork 222
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added new photo size type "J", fixed set Id for Market (#1603)
## Список изменений - Добавлен новый тип размера изображений "J". - Исправлено присвоение Id для вложений типа Market. ##### Обязательно выполните следующие пункты: - [x] Проверьте что ваш код не содержит конфликтов, и исправьте их по необходимости - [x] Напишите тесты, и обязательно проверьте что не падают другие. ![image](https://github.com/vknet/vk/assets/17874234/ea2d3287-bde8-45af-b73e-44881711e8bb) --------- Co-authored-by: dslekom <dslekom@zzlogistics.ru>
- Loading branch information
Showing
4 changed files
with
53 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
using FluentAssertions; | ||
using VkNet.Model; | ||
using Xunit; | ||
|
||
namespace VkNet.Tests.Models; | ||
|
||
public class MarketModel | ||
{ | ||
[Fact] | ||
public void ToString_MarketShouldHaveIdAndAccessKey() | ||
{ | ||
var market = new Market | ||
{ | ||
Id = 1234, | ||
OwnerId = 1234, | ||
AccessKey = "test" | ||
}; | ||
|
||
var result = market.ToString(); | ||
|
||
result.Should() | ||
.Be("market1234_1234_test"); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters