public AccountValidatorTests() { context = new TestingContext(); hasher = Substitute.For<IHasher>(); hasher.VerifyPassword(Arg.Any<String>(), Arg.Any<String>()).Returns(true); context.DropData(); SetUpData(); validator = new AccountValidator(new UnitOfWork(context), hasher); validator.CurrentAccountId = account.Id; }
public AccountValidatorTests() { context = new TestingContext(); hasher = Substitute.For<IHasher>(); hasher.VerifyPassword(Arg.Any<String>(), Arg.Any<String>()).Returns(true); validator = new AccountValidator(new UnitOfWork(context), hasher); validator.ModelState = new ModelStateDictionary(); TearDownData(); SetUpData(); }