public void ThenRecordsShouldBeInsertedInAvengerSMoviebaseFor(int Id, string movieName, string yearOfRelease)
        {
            var dtMovieRecords = (DataTable)DBHelpers.ShowDataInGridView(dBQueries.GetMovieRecords, dBQueries.DbConnectionStringAvengers);

            int      characterId            = (int)dtMovieRecords.Rows[0]["Id"];
            string   characterMovieName     = dtMovieRecords.Rows[0]["Movie_Name"].ToString();
            DateTime characterYearOfRelease = (DateTime)dtMovieRecords.Rows[0]["Year_Of_Release"];

            AssertHelpers.AssertEquals(characterId.ToString(), Id.ToString());
            AssertHelpers.AssertEquals(characterMovieName, movieName);
            AssertHelpers.AssertEquals(characterYearOfRelease.Year.ToString(), yearOfRelease);
        }
        public void ThenICanReadTheRecivedEmail()
        {
            outlookHelper.ReadOutlookEmail(inbox, "[Subject] = 'Test Automation'");

            var from    = outlookHelper.From;
            var to      = outlookHelper.To;
            var subject = outlookHelper.Subject;

            var body = outlookHelper.Body;

            AssertHelpers.AssertEquals(from, "*****@*****.**");
            AssertHelpers.AssertEquals(to, "*****@*****.**");
            AssertHelpers.AssertEquals(subject, "Test Automation");
            AssertHelpers.AssertContains(body, "This is an test email.");
        }
        public void ThenIGetListOfMoviesForGivenCharacterName()
        {
            int avengerMovieList = ScenarioContext.Current.Get <int>("AvengerFirstName");

            AssertHelpers.AssertEquals(avengerMovieList.ToString(), "1");
        }
        public void ThenIGetRequiredDetailsFromDatabaseTable()
        {
            string avengerFirstName = ScenarioContext.Current.Get <string>("AvengerFirstName");

            AssertHelpers.AssertEquals(avengerFirstName, "Steven");
        }
        public void ThenIShouldGetActiveWorkheetName()
        {
            string activeSheetName = ExcelInteropHelper.GetActiveSheetName();

            AssertHelpers.AssertEquals("Test1", activeSheetName);
        }