Пример #1
0
        public void ControllerInstallerSetup()
        {
            MapConfiguration.Bootstrap();

            var invoiceService = MockRepository.GenerateStub <InvoiceService>();

            invoiceService.Stub(a => a.GetInvoiceListing(null))
            .IgnoreArguments()
            .Return(new InvoiceListingModel());

            controller = new AdministrationController();
            controller.InvoiceServices = invoiceService;
        }
Пример #2
0
 public void ControllerInstallerSetup()
 {
     WindsorPersistenceFixture.InitializeContainer();
     MapConfiguration.Bootstrap();
 }