public void AddEditContractNoteIfNull()
        {
            var mockAddEditContractNote = new Mock <IContractNoteRepository>();

            mockAddEditContractNote.Setup(f => f.AddEditContractNote(It.IsAny <ContractNote>())).Returns(new ContractNote {
                ContractNoteId = 1
            });
            ContractNoteLogic target = new ContractNoteLogic(mockAddEditContractNote.Object);

            ContractNote actual = target.AddEditContractNote(null);

            Assert.IsNotNull(actual);
        }
Пример #2
0
 public ContractNote AddEditContractNote(ContractNote contractNotes)
 {
     return(_contractLogic.AddEditContractNote(contractNotes));
 }