Exemplo n.º 1
0
        public void GetDisabledCourier_CorrectData_ReturnsNull()
        {
            CourierDto courier = new CourierDto()
            {
                FirstName   = "Courier",
                LastName    = "Disabled",
                PhoneNumber = "testphone",
                Location    = new PointDto()
                {
                    Latitude = 23.02, Longitude = 54.03
                }
            };

            Guid id = courierService.AddCourierAsync(courier).Result;

            courierService.DisableCourierAsync(id).Wait();

            courier = courierService.GetCourierById(id);

            Assert.IsNull(courier);
        }