public void SetUp() { _configuration = MockRepository.GenerateMock<IAntiCsrfConfiguration>(); _configuration.Stub(arg => arg.MemoryCacheName).Return("cache"); _repository = new MemoryCacheRepository(_configuration); _sessionId = Guid.Parse("710f7634-b013-4fb8-abf5-97c98e4993c3"); _nonce = Guid.Parse("0dd344d0-7115-4c0e-864a-afaecb339138"); _repository.AddAsync(_sessionId, _nonce, DateTime.UtcNow, DateTime.MaxValue.ToUniversalTime()); }
public void SetUp() { _configuration = MockRepository.GenerateMock<IAntiCsrfConfiguration>(); _configuration.Stub(arg => arg.MemoryCacheName).Return("cache"); _repository = new MemoryCacheRepository(_configuration); }