public void InsertTaErrorTest()
        {
            //// Arrange
            var errors = new List<string>();
            var mockRepository = new Mock<ITARepository>();
            var taservice = new TaService(mockRepository.Object);

            //// Act
            taservice.InsertTA(null, ref errors);

            //// Assert
            Assert.AreEqual(1, errors.Count);
        }
        public string InsertTa(TA ta)
        {
            var errors = new List<string>();
            var repository = new TARepository();
            var service = new TaService(repository);

            service.InsertTA(null, ref errors);
            if (errors.Count == 0)
            {
                return "ok";
            }

            return "error";
        }
        public void InsertTaErrorTest2()
        {
            //// Arranage
            var errors = new List<string>();
            var mockRepository = new Mock<ITARepository>();
            var taservice = new TaService(mockRepository.Object);
            var ta = new TA { TA_Id = string.Empty };

            //// Act
            taservice.InsertTA(ta, ref errors);

            //// Assert
            Assert.AreEqual(1, errors.Count);
        }