Ejemplo n.º 1
0
        public void InstrumentServiceTestGetAllInstrumentsSuccess()
        {
            // Arrange
            var expectedSize = 30;
            var instrumentObjects = Builder<party_instrumenttype>.CreateListOfSize(30).Build();
            _instrumentRepository.Setup(i => i.GetAll()).Returns(instrumentObjects);
            var instrumentService = new InstrumentService(_instrumentRepository.Object);

            // Act
            var instruments = instrumentService.GetAllInstruments();

            // Assert
            Assert.AreEqual(expectedSize, instruments.Count());
        }