Exemple #1
0
        public void Delete_ValidId_ReturnsResult()
        {
            // Arrange
            var result = fixture.Create <Instrument>();

            instrumentRepository.Delete(Arg.Any <int>()).Returns(result);

            // Act
            var serviceResult = instrumentService.Delete(1);

            // Assert
            Assert.IsNotNull(serviceResult);
            Assert.AreEqual(serviceResult.Id, result.Id);
        }