public void SetUp() { this.fakeUnitOfWork = new FakeUnitOfWork(new FakeDbContext()); this.startPoint = new MapPoint(35.048072199999979, 48.437927).ToSqlGeography(); this.endPoint = new MapPoint(35.045630999999958, 48.46442).ToSqlGeography(); this.route = new RouteSeach(this.fakeUnitOfWork); }
public void CanMakeValidRoute() { var context = new FakeDbContext(); var unitOfWork = new FakeUnitOfWork(context); var routes = new List<Route>(); var route = unitOfWork.RouteRepository.All(); routes.Add(route.First()); var result = Route.MakeValid(routes); Assert.NotNull(result); }