public void ThenLastTicketShouldBeWithProductAndCompetitionTypeAsExpected() { TicketOrder expected = new TicketOrder(); expected.Competiotion = (string)_scenarioContext["competition"]; expected.Product = (string)_scenarioContext["product"]; expected.NumberOfTicket = (string)_scenarioContext["number"]; TicketOrder actualTicket = usersP.GetLastTicket(); Assert.AreEqual(expected, actualTicket); }