1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-11-10 13:02:47 +01:00

fixed profile unit test

This commit is contained in:
Mark McDowall 2014-11-06 20:08:47 -08:00
parent 64e7cc69b9
commit b53e633194

View File

@ -15,12 +15,12 @@ namespace NzbDrone.Core.Test.Profiles
public class ProfileServiceFixture : CoreTest<ProfileService> public class ProfileServiceFixture : CoreTest<ProfileService>
{ {
[Test] [Test]
public void Init_should_add_two_profiles() public void init_should_add_default_profiles()
{ {
Subject.Handle(new ApplicationStartedEvent()); Subject.Handle(new ApplicationStartedEvent());
Mocker.GetMock<IProfileRepository>() Mocker.GetMock<IProfileRepository>()
.Verify(v => v.Insert(It.IsAny<Profile>()), Times.Exactly(4)); .Verify(v => v.Insert(It.IsAny<Profile>()), Times.Exactly(5));
} }
[Test] [Test]