示例#1
0
        public void EventPlanning_Repository_CalculateCost_ShouldBeCorrect()
        {
            //Arrange
            EventPlanning_Repository eventrepo = new EventPlanning_Repository();
            EventType type = EventType.Bowling;

            //Act
            decimal actual   = eventrepo.AddCostOfOneType(type);
            decimal expected = 100.01m;

            //Assert
            Assert.AreEqual(expected, actual);
        }
示例#2
0
        public void EventPlanning_Repository_AddOutingToList_ShouldBeCorrect()
        {
            //Arrange
            EventPlanning_Repository eventPlanning = new EventPlanning_Repository();
            EventPlanning            basktball     = new EventPlanning();
            EventPlanning            pack          = new EventPlanning();
            EventPlanning            killa         = new EventPlanning();

            eventPlanning.AddEventPlanningList(basktball);
            eventPlanning.AddEventPlanningList(pack);
            eventPlanning.AddEventPlanningList(killa);

            //Act
            int actual   = eventPlanning.GetEventPlaningRepositoryList().Count;
            int expected = 3;

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