Пример #1
0
        public void Add_Duplicate_Isin_Returns_BadRequest()
        {
            // Arrange
            var company1 = repository.GetById(1);
            var company  = new Company()
            {
                Name = "4", Exchange = "4", Ticker = "4", Isin = company1.Isin
            };

            // Act
            var response = controller.Add(company) as BadRequestResult;

            // Assert
            Assert.IsType <BadRequestResult>(response);
        }