public void Initialize() { Customer customer = new Customer(); customer.CustomerId = "0001"; workItem = new TestableRootWorkItem(); workItem.Services.AddNew <WorkspaceLocatorService, IWorkspaceLocatorService>(); workspace = workItem.Workspaces.AddNew <MockWorkspace>(); entry = workItem.Items.AddNew <QueueEntry>("QueueEntry"); entry.Person = customer; finderService = workItem.Services.AddNew <MockCustomerFinderService, ICustomerFinderService>(); customerAccountService = workItem.Services.AddNew <MockCustomerAccountService, ICustomerAccountService>(); accountService = workItem.Services.AddNew <MockAccountService, IAccountService>(); quoteService = workItem.Services.AddNew <MockQuoteService, IQuoteService>(); authService = workItem.Services.AddNew <MockAuthenticationService, IAuthenticationService>(); impersonationService = workItem.Services.AddNew <GenericPrincipalImpersonationService, IImpersonationService>(); presenter = workItem.Items.AddNew <TestablePresenter>(); view = workItem.Items.AddNew <MockPurchaseCDView>(); presenter.View = view; workspace.Show(view); }
public void AddingCommandWithNameCreatesCommandWithName() { WorkItem workItem = new TestableRootWorkItem(); Command cmd = workItem.Commands["TestCommand"]; }
public void StaticHandlerThrows() { TestableRootWorkItem item = new TestableRootWorkItem(); SingleStaticTestCommandHandler cmdHandler = item.Items.AddNew <SingleStaticTestCommandHandler>(); }
public void Init() { mockContainer = new TestableRootWorkItem(); CreateUsers(); }
public void Initialize() { workItem = new TestableRootWorkItem(); selector = workItem.Services.AddNew <MockUserSelector, IUserSelectorService>(); service = workItem.Services.AddNew <SimpleWinFormAuthenticationService, IAuthenticationService>(); }