示例#1
0
        public async Task CreateAsync_DoctorValidationSucceed_CreatesStreet()
        {
            // Arrange
            var doctor   = new DealerUpdateModel();
            var expected = new Dealer();

            var doctorDAL = new Mock <IDealerDAL>();

            doctorDAL.Setup(x => x.InsertAsync(doctor)).ReturnsAsync(expected);

            var doctorService = new DealerService(doctorDAL.Object);

            // Act
            var result = await doctorService.CreateAsync(doctor);

            // Assert
            result.Should().Be(expected);
        }