예제 #1
0
        public void GetByUrl_FarmDoesntExist_FarmNotReturned()
        {
            var farm = new Farm()
            {
                Url = "1"
            };

            _mockFarms.SetSource(new[] { farm });

            var farmFromDb = _repository.GetByUrl("2");

            farmFromDb.Should().BeNull();
        }