Пример #1
0
        public void AddSuggestion(Suggestion suggestion)
        {
            var repo = new SuggestionRepository();
            repo.AddSuggestion(suggestion);
           

        }
Пример #2
0
        public void AddSuggestion(Suggestion suggestion, string filePath)
        {
            var repo = new SuggestionRepository();
            repo.AddSuggestion(suggestion, filePath);
           

        }
        public void SubmitSuggestionTest()
        {
            var repo = new SuggestionRepository();

            var suggestion = new Suggestion()
            {
                SuggestionText = "Test",
                EmployeeName = "Johnny"
            };

            repo.AddSuggestion(suggestion);
            Assert.AreEqual("Johnny", suggestion.EmployeeName);
        }
        public void SubmitSuggestionTest()
        {
            var repo = new SuggestionRepository();

            var suggestion = new Suggestion()
            {
                SuggestionText = "Test",
                EmployeeName = "Johnny"
            };

            string filePath =
                @"C:\Users\Apprentice\Desktop\GitHub\KileyDowling\SGCorpHRV2\SGCorpHR\SGCorpHR.TEST\Suggestions\Suggestions.txt";

            repo.AddSuggestion(suggestion, filePath);
            Assert.AreEqual("Johnny", suggestion.EmployeeName);

        }