mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-07-09 03:04:20 -04:00
Creating an insert test
This commit is contained in:
parent
cbb38e6fa1
commit
2ec51b20e0
@ -60,6 +60,16 @@ namespace Kyoo.Tests.SpecificTests
|
|||||||
Assert.Equal("anohana-s2", season.Slug);
|
Assert.Equal("anohana-s2", season.Slug);
|
||||||
}
|
}
|
||||||
|
|
||||||
//TODO test insert trigger
|
[Fact]
|
||||||
|
public async Task SeasonCreationSlugTest()
|
||||||
|
{
|
||||||
|
Season season = await _repository.Create(new Season
|
||||||
|
{
|
||||||
|
Show = TestSample.Get<Show>(),
|
||||||
|
SeasonNumber = 2
|
||||||
|
});
|
||||||
|
Assert.Equal($"{TestSample.Get<Show>().Slug}-s2_NICE", season.Slug + "_" + season.Poster);
|
||||||
|
Assert.Equal($"{TestSample.Get<Show>().Slug}-s2", season.Slug);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user