Exemple #1
0
        public void Can_Retrieve_Saved_Expenses_From_Staff()
        {
            var service       = new StaffService(_staffRepoMock.Object);
            var savedExpenses = service.GetAllSavedIncomes(sampleManager.Id);

            Assert.AreEqual(2, savedExpenses.Count);
        }
Exemple #2
0
        public void Can_Retrieve_Saved_Income_From_Staff()
        {
            var service      = new StaffService(_staffRepoMock.Object);
            var savedIncomes = service.GetAllSavedIncomes(_sampleStaffs[1].Id);

            Assert.AreEqual(_sampleStaffs[1].Incomes.Count, savedIncomes.Count);
        }