Пример #1
0
        public void CreateWrestlerTest(WrestlerModel model)
        {
            var id = Wrestler.Create(model);

            // compare models
            var modelCurrent = Wrestler.Read(id);

            model.CompareModels(modelCurrent);
        }
Пример #2
0
        public void CreateWrestlerWithPhotoAttachmentAPITest(WrestlerModel model)
        {
            var id = Wrestler.Create(model);

            var attachModel = Wrestler.UploadPhoto(id, PathToFiles + model.attaches[0].filename);

            //compare models
            var modelCurrent = Wrestler.Read(id);

            model.CompareModels(modelCurrent);
        }