Exemplo n.º 1
0
        //[TestCase(1, 892)]
        //[TestCase(2, 70)]
        //[TestCase(3, 555)]
        //[TestCase(4, 290)]
        public void GetLocationFromId(int id, int result)
        {
            var location = LocationService.GetLocationFromId(id);

            Assert.AreEqual(location.AddressId, result);
        }
Exemplo n.º 2
0
        public void Y_TestAddedLocation()
        {
            var addedLocation = LocationService.GetLocationFromId(Location.Id);

            Assert.AreEqual(addedLocation.Capacity, Location.Capacity);
        }
Exemplo n.º 3
0
 public LocationServiceTest()
 {
     TecAppContext   = new TecAppContext();
     LocationService = new LocationService(TecAppContext);
 }