Skip to content
This repository has been archived by the owner on Dec 6, 2019. It is now read-only.

Commit

Permalink
[#392] fixed up Feature/Accounts AccountsRepositoryTests
Browse files Browse the repository at this point in the history
  • Loading branch information
nickwesselman committed Jun 28, 2018
1 parent 13a5132 commit ac58391
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/Feature/Accounts/Tests/AccountsRepositoryTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,8 @@ public static IEnumerable<object[]> RegistrationInfosArgumentNull
[MemberData(nameof(RegistrationInfosArgumentNull))]
public void RegisterUser_NullEmailOrPassword_ShouldThrowArgumentException(string email, string password, string profileId)
{
var repository = new AccountRepository(Substitute.For<PipelineService>());
repository.Invoking(x => x.RegisterUser(email, password, profileId)).ShouldThrow<ArgumentNullException>();
var repository = new AccountRepository(Substitute.For<PipelineService>(), Substitute.For<IAccountTrackerService>());
repository.Invoking(x => x.RegisterUser(email, password, profileId)).Should().Throw<ArgumentNullException>();
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@
<Compile Include="Extensions\RightKeysAttribute.cs" />
<Compile Include="Extensions\RightKeysCustomization.cs" />
<Compile Include="NotificationsServiceTests.cs" />
<None Include="AccountsRepositoryTests.cs" />
<Compile Include="AccountsRepositoryTests.cs" />
<None Include="AccountsControllerTests.cs" />
<Compile Include="ProfileSettingsServiceTests.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
Expand Down

0 comments on commit ac58391

Please sign in to comment.