public async void GetInfo_Authenticated() { //ARRANGE: authenticate user MyUser user = fixture.Authenticate_User("Miguel"); //ARRANGE: Get a valid and existing privateSongId string privateSongId = MySqlHelpers.GetRandomUserPrivateSongId(user.UserName); //ACT: string responseContentString = await GetInfo_Act(privateSongId, HttpStatusCode.OK); //ASSERT: Response object matches database state PrivateSongBM responseObject = JsonConvert.DeserializeObject <PrivateSongBM>(responseContentString); Assert.True(MySqlHelpers.CheckIfPrivateSongBmMatchesDb(privateSongId, responseObject)); }