public void SetUp() { _nancySessionFromNancyContextResolver = _nancySessionFromNancyContextResolver.Fake(); _invoiceGenIdentityFactory = _invoiceGenIdentityFactory.Fake(); _nancyContext = new NancyContext(); _sut = new NancySecurityContext(_nancyContext, _nancySessionFromNancyContextResolver, _invoiceGenIdentityFactory); }
public void SetUp() { _nancySessionFromNancyContextResolver = _nancySessionFromNancyContextResolver.Fake(); _userFromSessionResolver = _userFromSessionResolver.Fake(); _invoiceGenIdentityFactory = _invoiceGenIdentityFactory.Fake(); _sut = new NancyIdentityFromContextAssigner( _nancySessionFromNancyContextResolver, _userFromSessionResolver, _invoiceGenIdentityFactory); _context = new NancyContext(); }