Esempio n. 1
0
        public void FavoritesOperation()
        {
            FavoritesServices service = new FavoritesServices();
            RequestFavorites  fav     = new RequestFavorites
            {
                INSERT_USER     = "******",
                UPDATE_USER     = "******",
                BOAT_ID         = 4,
                CUSTOMER_NUMBER = 5,
                Header          = new Header
                {
                    Device         = (int)DeviceEnum.Device.WEB,
                    OperationTypes = (int)OperationType.OperationTypes.ADD,
                    RequestId      = Guid.NewGuid().ToString(),
                    ApiKey         = "U6l1hKzpZDrgfTaKxpQm3A/6raDiroAI7ueTgMNwhQs=",
                    TokenId        = ""
                }
            };

            FavoriteOperation ff = new FavoriteOperation(fav, service);

            ff.Execute();

            Assert.IsNotNull(ff.response);
            Assert.IsTrue(ff.response.header.IsSuccess == true);
        }
Esempio n. 2
0
        public async Task <BaseResponseMessage> FavoriteService(RequestFavorites request)
        {
            FavoriteOperation op = new FavoriteOperation(request, this.favoritesServices);

            op.Execute();
            return(op.baseResponseMessage);
        }