Пример #1
0
        public void UpdateNotesDeleteNoteTest()
        {
            var notes = new List <TestNote>
            {
                new TestNote {
                    ErrorCodeId = 0, Id = 1, Message = "TestMessage"
                }
            };

            var testValue = new TestValue
            {
                TestValueNote = new List <TestValueNote>
                {
                    new TestValueNote
                    {
                        ErrorId         = 2,
                        TestValueNoteId = 1,
                        Message         = "TestMessage"
                    }
                }
            };

            var testBll = MockHelperBll.GetTestBllForDeletingNotes();

            var testServiceHelper = new TestServiceHelper(new NLogLoggerFactory())
            {
                TestBll = testBll
            };

            testServiceHelper.UpdateNotes(notes, testValue);

            Assert.Equal(0, testValue.TestValueNote.Count);
        }