Пример #1
0
        public void RemoveOfferTest()
        {
            OfferEditDataDto dto = new OfferEditDataDto()
            {
                Username = "******",
                OfferId  = 4
            };

            IHttpActionResult result = _controller.RemoveOfferAsync(dto);

            Offer o = _context.Offers.FirstOrDefault(x => x.Id == dto.OfferId);

            Assert.IsNull(o);
        }