Exemplo n.º 1
0
        public void GetDamageReportOfUserTest()
        {
            DamageReport dr = DamageReportFactory.NewDamageReport();

            string token = UsingDbContext(context => DamageReportsMockDatabaseHelper.AddDamageReport(dr, context));

            DamageReportCompleteOutputDto queryResult = _damageReportAppService.Get(dr.Id, token);

            Assert.Equal(dr.Description, queryResult.Description);
        }
Exemplo n.º 2
0
        public DamageReportCompleteOutputDto GetDamageReport(int id)
        {
            string token = Utillities.GetTokenFromRequest(Request);

            return(_damageAppService.Get(id, token));
        }