public void GetFarm_FarmDoesntExist_FarmNotReturned() { var farm = new Farm { Id = 1 }; var farm2 = new Farm { Id = 2 }; _mockFarms.SetSource(new[] { farm }); var farmFromDb = _repository.GetFarm(farm2.Id); farmFromDb.Should().BeNull(); }