Пример #1
0
        public void AddInstrument()
        {
            // Arrange
            var instrumentName = Contracts.InstrumentName.EUR_USD;
            var instrument     = new Contracts.InstrumentCreation()
            {
                Name = instrumentName
            };

            // Act
            var instrumentAdded = _instrumentService.AddInstrument(instrument);

            // Assert
            Assert.Equal(instrumentName, instrumentAdded.Name);
        }
Пример #2
0
 public Instrument AddInstrument([FromBody] InstrumentCreation instrument)
 {
     return(_instrumentService.AddInstrument(instrument));
 }