Пример #1
0
 public OutingContent(OutingEvent typeOfEvent, int numberOfCustomer, DateTime outingDate, decimal personalCost, decimal eventCost)
 {
     TypeOfEvent      = typeOfEvent;
     NumberOFCustomer = numberOfCustomer;
     OutingDate       = outingDate;
     PersonCost       = personalCost;
     EventCost        = eventCost;
 }
Пример #2
0
        public void OutingRepository_AddOutingToList_ShouldReturnCorrectCount()
        {
            //Arrange
            OutingEvent      outing    = new OutingEvent();
            OutingEvent      outingTwo = new OutingEvent();
            OutingRepository repo      = new OutingRepository();

            //Act
            repo.AddOutingToList(outing);
            repo.AddOutingToList(outingTwo);

            int actual   = repo.GetOutingList().Count;
            int expected = 2;

            //Assert
            Assert.AreEqual(expected, actual);
        }