Ejemplo n.º 1
0
        public async void Get_Authenticated()
        {
            //ARRANGE: authenticate user
            MyUser user = fixture.Authenticate_User("Miguel");

            //ACT:
            string responseContentString = await Get_Act(HttpStatusCode.OK);

            //ASSERT: Response object matches database state
            PrivateSongBasicVM[] responseObject =
                JsonConvert.DeserializeObject <PrivateSongBasicVM[]>(responseContentString);

            Assert.True(MySqlHelpers.CheckIfPrivateSongListMatchesDb(responseObject, user));
        }