Esempio n. 1
0
 public void SetUpTest()
 {
     mocks     = new MockRepository();
     service   = mocks.CreateMock <IShippingService>();
     screen    = mocks.CreateMock <IShippingScreen>();
     presenter = new ShippingScreenPresenter(screen, service);
 }
Esempio n. 2
0
        public void SetUpTest()
        {
            shipment = new Shipment();
            shipment.StateOrProvince = "Testville";
            shipment.Vendor          = "Test";
            shipment.ShippingOption  = "Carrier Pigeon";

            mocks     = new MockRepository();
            service   = mocks.CreateMock <IShippingService>();
            screen    = mocks.CreateMock <IShippingScreen>();
            presenter = new ShippingScreenPresenter(screen, service, shipment);
        }
        public void SetUpTest()
        {
            shipment = new Shipment();
            shipment.StateOrProvince = "Testville";
            shipment.Vendor = "Test";
            shipment.ShippingOption = "Carrier Pigeon";

            mocks = new MockRepository();
            service = mocks.CreateMock<IShippingService>();
            screen = mocks.CreateMock<IShippingScreen>();
            presenter = new ShippingScreenPresenter(screen, service, shipment);
        }
 public void SetUpTest()
 {
     mocks = new MockRepository();
     service = mocks.CreateMock<IShippingService>();
     screen = mocks.CreateMock<IShippingScreen>();
     presenter = new ShippingScreenPresenter(screen, service);
 }