コード例 #1
0
        public void CreateMail_WithValidData_ShouldReturnCreatedAtActionResult()
        {
            // Act
            var result = sut.CreateMail(mail);

            // Assert
            Assert.IsInstanceOfType(result, typeof(CreatedAtActionResult));
            mockMailingService.Verify(m => m.Save(mail.MailingId, mail), Times.Once);
        }