Пример #1
0
        public void PatchMail_WithValidPatchDocument_ReturnOkObjectResult()
        {
            // Act
            var result = sut.PatchMail(patchedMail, existingMailingId);

            // Assert
            Assert.IsInstanceOfType(result, typeof(OkObjectResult));
            mockMailingRepository.Verify(m => m.Retrieve(existingMailingId), Times.Once);
            mockMailingService.Verify(m => m.Save(existingMailingId, mail));
        }