Beispiel #1
0
        public async void RemoveMakeAsync_Returns_1()
        {
            repoMock.Setup(s => s.RemoveAsync(It.IsAny <Guid>())).Returns(Task.FromResult(1));
            uowMock.SetupGet(s => s.Makers).Returns(repoMock.Object);
            uowMock.Setup(s => s.CommitAsync()).Returns(Task.FromResult(1));


            var makeService = new VehicleMakeService(uowMock.Object);
            var result      = await makeService.RemoveMakeAsync(Guid.NewGuid());

            //Assert
            Assert.Equal(1, result);
        }