public void GivenUpdateFromFile_WhenBadArg_ThenThrow()
        {
            //Arrange
            var    dbControlMock   = Substitute.For <IDBControl>();
            var    fileControlMock = Substitute.For <IFileControl>();
            var    taxManager      = new TaxManagementClass(fileControlMock, dbControlMock);
            string arg             = "test";
            string expectedResult  = "ERROR: bad arguments!";

            //Act
            string result = taxManager.UpdateFromFile(arg);

            //Assert
            Assert.AreEqual(expectedResult, result);
        }
        public void GivenUpdateFromFile_WhenGoodFileGoodArg_ThenAddRecord()
        {
            //Arrange
            var    dbControlMock   = Substitute.For <IDBControl>();
            var    fileControlMock = Substitute.For <IFileControl>();
            var    taxManager      = new TaxManagementClass(fileControlMock, dbControlMock);
            string arg             = "update";
            string expectedResult  = "Taxes from file: " +
                                     "municipality " + "Vilnius" +
                                     "; tax " + "0,3" +
                                     "; start date " + "2019-05-30" +
                                     "; end date " + "-" +
                                     "; tax type " + "Daily";

            //Act
            string result = taxManager.UpdateFromFile(arg);

            //Assert
            Assert.AreEqual(expectedResult, result);
        }