public void StudyDatasetRequest_correctly_configured_requests_raw_dataset() { var req = new SubjectDatasetRequest("TESTPROJECT", "DEV", "1001", dataset_type: "raw"); Assert.AreEqual("TESTPROJECT", req.ProjectName); Assert.AreEqual("DEV", req.EnvironmentName); Assert.AreEqual("1001", req.SubjectKey); Assert.AreEqual("studies/TESTPROJECT(DEV)/subjects/1001/datasets/raw", req.UrlPath()); }
public void SubjectDatasetRequest_default_parameters_are_set_correctly() { var req = new SubjectDatasetRequest("TESTPROJECT", "DEV", "1001"); Assert.AreEqual("TESTPROJECT", req.ProjectName); Assert.AreEqual("DEV", req.EnvironmentName); Assert.AreEqual("1001", req.SubjectKey); Assert.AreEqual("studies/TESTPROJECT(DEV)/subjects/1001/datasets/regular", req.UrlPath()); }