コード例 #1
0
        public async Task Should_Call_ExistsAsyncMethodByResidentialIdAndHouseName()
        {
            //Arrange

            const int    residentialId = 2;
            const string houseName     = "House name";

            _manager = new HouseManager(_mapperMock.Object, _houseRepositoryMock.Object);

            //Act

            var result = await _manager.ExistsAsync(residentialId, houseName);

            //Assert

            _houseRepositoryMock.Verify(x => x.ExistsAsync(residentialId, houseName), Times.Once);
        }