Exemple #1
0
        public void ShouldReturnItemsFromRepo()
        {
            A.CallTo(() => repository.GetByLocation(A <float> ._, A <float> ._)).Returns(new[] { A.Dummy <Playground>() });

            var result = controller.GetByLocation(0, 0);

            Assert.That(result, Is.Not.Empty);
        }
 public IEnumerable <Playground> GetByLocation(float lat, float lng)
 {
     return(_repository.GetByLocation(lat, lng));
 }