예제 #1
0
        public void GetCompanies_NotFound_BuildingNotExists()
        {
            var buildingId = new BuildingId(12);

            _buildingRepository.Get(buildingId).ReturnsNull();

            var response = _buildingsController.GetCompanies(buildingId.Value);

            Assert.That(response, Is.TypeOf <NotFoundResult>());
        }