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()); }