protected void Setup() { executor = new Mock <ProcessExecutor>(); parser = new Mock <IHistoryParser>(); registry = new Mock <IRegistry>(); alienbrain = new Alienbrain((IHistoryParser)parser.Object, (ProcessExecutor)executor.Object, (IRegistry)registry.Object); }
protected void Setup() { executor = new DynamicMock(typeof(ProcessExecutor)); parser = new DynamicMock(typeof(IHistoryParser)); registry = new DynamicMock(typeof(IRegistry)); alienbrain = new Alienbrain((IHistoryParser)parser.MockInstance, (ProcessExecutor)executor.MockInstance, (IRegistry)registry.MockInstance); }