Exemplo n.º 1
0
        public void NewBudgets()
        {
            //Arrange
            ProjectionContext projectionContext = new ProjectionContext();
            SapDataContext    sapDataContext    = new SapDataContext();
            Check             check             = new Check(projectionContext, sapDataContext);
            SessionViewModel  sessionView       = new SessionViewModel();
            //Act
            IEnumerable <ProjectionViewModel> newBudgets = check.NewBudgets(sessionView);

            if (String.IsNullOrEmpty(newBudgets.ToString()))
            {
                //Assert
                projectionContext.Dispose();
                sapDataContext.Dispose();
                Assert.Inconclusive("Inconcluso: La lista no pudo traer ningun dato");
            }
            else
            {
                //Assert
                projectionContext.Dispose();
                sapDataContext.Dispose();
                Assert.IsNotNull(newBudgets, "La lista falló en traer datos");
            }
        }
 /// <summary>
 /// IDispose implementation
 /// </summary>
 /// <param name="disposing"></param>
 protected override void Dispose(bool disposing)
 {
     if (disposing)
     {
         _sapDataContext.Dispose();
         _projectionContext.Dispose();
     }
     base.Dispose(disposing);
 }
Exemplo n.º 3
0
        } // End calculateSheet

        public void Dispose()
        {
            _projectionContext.Dispose();
            _sapDataContext.Dispose();
        }