Exemplo n.º 1
0
        private void Add()
        {
            var cde = new Commande
            {
                Id           = CommandesController.GetNextIdCde(),
                NumeroClient = _clientCurrent != null ? _clientCurrent.NumeroClient : String.Empty
            };

            OpenCommande(cde);
        }
Exemplo n.º 2
0
        public void Commandess_getMemoeryCommandeByBadge_Should_Return_oneComande()
        {
            //Arrange
            moqRepository.Setup(g => g.GetAll(null)).Returns(listCommandes).Verifiable();
            moqUnitOfWork.Setup(x => x.Repository <Commande>()).Returns(moqRepository.Object);

            var controller = new CommandesController(moqUnitOfWork.Object);

            // Act
            var contentResult = controller.getMemoeryCommandeByBadge(1) as OkNegotiatedContentResult <Commande>;

            // Assert
            Assert.IsNotNull(contentResult);
            Assert.IsNotNull(contentResult.Content);
            //Assert.AreEqual(1, contentResult.Content.Count());
        }
Exemplo n.º 3
0
 public void LoadDatas()
 {
     Commandes = CommandesController.Initialize().Where(c => c.NumeroClient == _clientCurrent.NumeroClient).ToList();
 }
Exemplo n.º 4
0
 public ListClientsPageViewModel()
 {
     CommandesController.Initialize();
     Clients           = ClientsController.Initialize();
     DisconnectCommand = new RelayCommand(Disconnect);
 }
Exemplo n.º 5
0
 private void Save()
 {
     CommandesController.Save(CommandeCurrent);
 }