Example #1
0
        public async Task ShouldAddSubject()
        {
            // Arrage
            var service = new SubjectService(_mockUow.Object, _mapper, _mockRepo.Object);

            // Act
            var b = new Subject
            {
                Name = "Subject",
            };

            await service.AddAsync(b);

            // Assert
            _mockUow.Verify(m => m.SaveAsync(), Times.Once());
        }