protected override void Context() { base.Context(); _transporter = new IndividualTransporter { TransportType = TransportType.Efflux, Name = "toto" }; _transporterWithTemplate = new TransporterExpressionContainer { MembraneLocation = MembraneLocation.Apical }.WithName(_liver); _transporterWithoutTemplate = new TransporterExpressionContainer { MembraneLocation = MembraneLocation.Basolateral }.WithName("Kidney"); _transporter.Add(_transporterWithTemplate); _transporter.Add(_transporterWithoutTemplate); _transporterContainerTemplate = new TransporterContainerTemplate { MembraneLocation = MembraneLocation.Apical, TransportType = TransportType.Influx }; _defaultTemplate = new TransporterContainerTemplate { MembraneLocation = MembraneLocation.Basolateral, TransportType = TransportType.Influx }; _allTransporterTemplates.Add(_transporterContainerTemplate); A.CallTo(() => _repository.HasTransporterTemplateFor(_species, _transporter.Name)).Returns(true); A.CallTo(() => _repository.TransportTypeFor(_species, _transporter.Name)).Returns(TransportType.Influx); A.CallTo(() => _repository.TransportersFor(_species, _liver, _transporter.Name)).Returns(_allTransporterTemplates); A.CallTo(() => _repository.TransportersFor(_species, _kidney, _transporter.Name)).Returns(new List <TransporterContainerTemplate>()); A.CallTo(() => _repository.TransportersFor(_species, _kidney)).Returns(new List <TransporterContainerTemplate> { _defaultTemplate }); }
protected override void Context() { sut = new IndividualTransporter().WithName("T"); _transpoterExpressionLiver = new TransporterExpressionContainer().WithName("Liver"); _transpoterExpressionLiver.AddProcessName("P1"); _transpoterExpressionKidney = new TransporterExpressionContainer().WithName("Kidney"); _transpoterExpressionKidney.AddProcessName("P2"); _transpoterExpressionBrain = new TransporterExpressionContainer().WithName("Brain"); _transpoterExpressionBrain.AddProcessName("P1"); sut.Add(_transpoterExpressionLiver); sut.Add(_transpoterExpressionKidney); sut.Add(_transpoterExpressionBrain); }