Example #1
0
        public void Assert_receipt_is_correct()
        {
            Organizer   organizer   = new Organizer();
            SocialEvent socialEvent = new SocialEvent(10, 100, organizer, "TestCategory", "TestName");
            Ticket      ticket      = new Ticket(socialEvent);
            Vipps       vipps       = new Vipps();
            Receipt     receipt     = new Receipt(4, ticket, "kr", vipps.ToString());
            string      result      = receipt.GenerateReceipt();

            Approvals.Verify(result);
        }
Example #2
0
 public void SetUp()
 {
     creditCard = new CreditCard();
     vipps      = new Vipps();
 }