public async Task CreateSellTestAsync() { string expectedResult = "Item Created"; string result = String.Empty; Store store = new Store(_storeRepository); store = await store.GetStoreByKeyAsync("ST01"); string cashdeskId = store.CashDesks.Where(x => x.Description == "Caja 1").FirstOrDefault().Id; Sell sell = new Sell(_sellRepository, _statusSellRepository, _productRepository); sell.CashDeskID = cashdeskId; sell.StoreId = "ST01"; sell.UserId = "2a891b52-cfae-4d3d-a1ea-94440b7983c8"; result = await sell.CreateSellAsync(Guid.NewGuid().ToString()); Assert.AreEqual(expectedResult, result); }