Exemplo n.º 1
0
        public void InitializeMock()
        {
            _mocks = new MockRepository();

            _catalog = _mocks.Stub<ICatalog>();
            _catalog.Stub(_ => _["12345"]).Return(new ProductPriceInfo(500.00));
            _catalog.Stub(_ => _["23456"]).Return(new ProductPriceInfo(100.00) { PstIncluded = true });
        }