public async Task Create_Get()
        {
            var document    = Guid.NewGuid().ToString();
            var tradingName = Guid.NewGuid().ToString();
            var owner       = Guid.NewGuid().ToString();

            var newPdv = new NewPDV
            {
                Code         = "1",
                TradingName  = tradingName,
                Owner        = owner,
                Document     = document,
                CoverageArea = GeoJSONFactory.NewMultiPolygon(new double[, ] {
                    { 0, 0 }, { 0, 0 }, { 0, 0 }, { 0, 0 }
                }),
                Address = GeoJSONFactory.NewPoint(0, 0)
            };

            var id = await pdvService.Create(newPdv);

            var created = await pdvService.Get(id);

            Assert.AreEqual(newPdv.Code, created.Code);
            Assert.AreEqual(newPdv.TradingName, created.Company.TradingName);
            Assert.AreEqual(newPdv.Document, created.Company.Document);
            Assert.AreEqual(newPdv.Owner, created.Company.Owner.Name);
            Assert.IsNotNull(created.CoverageArea);
            Assert.IsNotNull(created.Address);
        }
 public async Task <Guid> Create([FromBody] NewPDV request)
 {
     return(await pdvService.Create(request));
 }