public void SetUp() { this.optionService = new Mock <IOptionService>(); this.engineeringModelSetupService = new Mock <IEngineeringModelSetupService>(); this.iterationService = new Mock <IIterationService>(); this.iterationSetupService = new Mock <IIterationSetupService>(); this.securityContext = new Mock <ISecurityContext>(); this.engineeringModelService = new Mock <IEngineeringModelService>(); this.requestUtils = new Mock <IRequestUtils>(); this.npgsqlTransaction = null; this.option1 = new Option(Guid.NewGuid(), 0); this.option2 = new Option(Guid.NewGuid(), 0); this.options = new List <Option>(); this.optionService.Setup(x => x.GetShallow(It.IsAny <NpgsqlTransaction>(), It.IsAny <string>(), It.IsAny <IEnumerable <Guid> >(), It.IsAny <ISecurityContext>())).Returns(options); this.iterationSetup = new IterationSetup { Iid = Guid.NewGuid() }; this.iteration = new Iteration { Iid = Guid.NewGuid(), IterationSetup = this.iterationSetup.Iid }; this.iteration.DefaultOption = this.option1.Iid; this.iterationSetup.IterationIid = this.iteration.Iid; this.updatedIteration = this.iteration.DeepClone <Iteration>(); this.engineeringModelSetup = new EngineeringModelSetup { Iid = Guid.NewGuid(), IterationSetup = new List <Guid> { this.iterationSetup.Iid }, }; this.engineeringModel = new EngineeringModel { Iid = Guid.NewGuid(), EngineeringModelSetup = this.engineeringModelSetup.Iid }; this.engineeringModelSetup.EngineeringModelIid = this.engineeringModel.Iid; this.optionSideEffect = new OptionSideEffect { OptionService = this.optionService.Object, EngineeringModelSetupService = this.engineeringModelSetupService.Object, EngineeringModelService = this.engineeringModelService.Object, IterationService = this.iterationService.Object, IterationSetupService = this.iterationSetupService.Object, RequestUtils = this.requestUtils.Object }; }
public void SetUp() { this.optionSideEffect = new OptionSideEffect(); }