public static async Task ClassInit(TestContext context) { _project = await Helpers.CreateProject(); _photo = await Helpers.CreatePhoto(_project.Id); _user = await Helpers.CreateUser(); }
public static async Task <CompanyCam.Models.Project> CreateProject() { CompanyCam.CompanyCamConfiguration.SetApiKey(TestConfiguration.Apikey); CompanyCam.CompanyCamConfiguration.SetApiKey(TestConfiguration.SecretKey); CompanyCam.CompanyCamConfiguration.SetUserEmail(TestConfiguration.UserEmail); //Create Project var newProject = new CompanyCam.Models.Project() { Name = "Test Project", Address = new Address() { StreetAddress1 = "", StreetAddress2 = "", City = "", PostalCode = "", Country = "US", State = "" }, Coordinates = new Coordinates() { Lat = 40.8191702, Lon = -96.7119411 }, Status = Status.Active, FeatureImage = new List <FeatureImage> { new FeatureImage() { Type = "thumbnail", Url = "https://raowj40442-flywheel.netdna-ssl.com/wp-content/uploads/2017/01/Artboard-1.png" } } }; return(await new ProjectService().Create(newProject)); }
public static async Task ClassInit(TestContext context) { _project = await Helpers.CreateProject(); }