コード例 #1
0
        public async Task ExpenseRepository_GetTeamExpensesByMember_Test()
        {
            var         context         = new MyCompanyContext();
            var         managerIdentity = context.Employees.FirstOrDefault(e => e.ManagedTeams.Any()).Email;
            PictureType pictureType     = PictureType.Small;

            var results = await target.GetTeamExpensesByMemberAsync(managerIdentity, pictureType);

            Assert.IsNotNull(results);
            Assert.IsTrue(results.Any());
            Assert.IsNotNull(results.First().Picture);
        }