protected override void Context() { var schemaItemDTO1 = DomainHelperForSpecs.SchemaItemDTO(ApplicationTypes.Intravenous, _doseUnit, 1); var schemaItemDTO2 = DomainHelperForSpecs.SchemaItemDTO(ApplicationTypes.Intravenous, _doseUnit, 2); _allSchemaItemsDTOForCompoundCache.Add(new Compound(), new[] { schemaItemDTO1, schemaItemDTO2 }); base.Context(); }
protected override void Context() { var schemaItemDTO1 = DomainHelperForSpecs.SchemaItemDTO(ApplicationTypes.Intravenous, startTimeValue: 10); //min var schemaItemDTO2 = DomainHelperForSpecs.SchemaItemDTO(ApplicationTypes.Intravenous, startTimeValue: 20); //min _allSchemaItemsDTOForCompoundCache.Add(new Compound(), new[] { schemaItemDTO1, schemaItemDTO2 }); A.CallTo(() => _timeDimension.BaseUnitValueToUnitValue(_timeDisplayUnit, 10)).Returns(100); A.CallTo(() => _timeDimension.BaseUnitValueToUnitValue(_timeDisplayUnit, 20)).Returns(200); base.Context(); }
protected override void Context() { base.Context(); _schema = A.Fake <Schema>(); _schemaDTO = A.Fake <SchemaDTO>(); _schemaItemDTO = DomainHelperForSpecs.SchemaItemDTO(ApplicationTypes.Intravenous); _schemaItem = _schemaItemDTO.SchemaItem; A.CallTo(() => _schemaDTO.Schema).Returns(_schema); A.CallTo(() => _advancedProtocol.Contains(_schema)).Returns(true); _allSchemas.Add(_schema); A.CallTo(() => _schemaDTOMapper.MapFrom(_schema)).Returns(_schemaDTO); A.CallTo(() => _schemaItemDTOMapper.MapFrom(_schemaItem)).Returns(_schemaItemDTO); sut.EditProtocol(_advancedProtocol); }
protected override void Context() { base.Context(); _schemaDTO = A.Fake <SchemaDTO>(); _schemaItem = A.Fake <SchemaItem>(); _schema = A.Fake <Schema>(); _deleteSchemaItemCommand = A.Fake <IPKSimCommand>(); _schemaItemDTOToDelete = DomainHelperForSpecs.SchemaItemDTO(ApplicationTypes.Intravenous); _schemaItemDTOToDelete.ParentSchema = _schemaDTO; _schemaItemToDelete = _schemaItemDTOToDelete.SchemaItem; A.CallTo(() => _schemaDTO.Schema).Returns(_schema); A.CallTo(() => _schema.SchemaItems).Returns(new[] { _schemaItem, _schemaItemToDelete }); A.CallTo(() => _protocolTask.RemoveSchemaItemFrom(_schemaItemToDelete, _schema)).Returns(_deleteSchemaItemCommand); }