コード例 #1
0
ファイル: Test.cs プロジェクト: DLearch/HomeBookkeepingApp
        public static void addCategory()
        {
            HomeBugaltery homeBugaltery = HomeBugaltery.getInstance();

            // homeBugaltery.addCategory("Подарунок", true);

            Assert.AreEqual(13, homeBugaltery.ListCategories.Count);
        }
コード例 #2
0
ファイル: Test.cs プロジェクト: DLearch/HomeBookkeepingApp
        public static void addOrder()
        {
            HomeBugaltery homeBugaltery = HomeBugaltery.getInstance();

            // homeBugaltery.addOrder("Зарплата", "Руслан", 2017-09-10, 350, 1);

            Assert.AreEqual(13, homeBugaltery.ListCategories.Count);
        }
コード例 #3
0
 public AddNewUserCommand(HomeBugaltery homeBugaltery, string email, string name, string password, int familyId)
 {
     this.homeBugaltery = homeBugaltery;
     this.userEmail     = email;
     this.userName      = name;
     this.userPassword  = password;
     this.familyId      = familyId;
 }
コード例 #4
0
 public AddNewOrderCommand(HomeBugaltery homeBugaltery, string categoryName, string userName, DateTime dateOrder, decimal price, string description)
 {
     this.homeBugaltery = homeBugaltery;
     this.categoryName  = categoryName;
     this.userName      = userName;
     this.dateOrder     = dateOrder;
     this.price         = price;
     this.description   = description;
 }
コード例 #5
0
        public ChangeCategoryCommand(HomeBugaltery homeBugaltery, int curentCategoryId, string newName, bool newType)
        {
            this.homeBugaltery = homeBugaltery;

            this.curentCategoryId = curentCategoryId;

            this.newName = newName;
            this.newType = newType;
        }
コード例 #6
0
        static public HomeBugaltery getInstance()
        {
            if (instance == null)
            {
                instance = new HomeBugaltery();
            }

            return(instance);
        }
コード例 #7
0
ファイル: Test.cs プロジェクト: DLearch/HomeBookkeepingApp
        public static void getListOrders()
        {
            //MarketEntities dbLocal = new MarketEntities("new Connection String!!!");
            //BisnesLogic bisnesLogic = new BisnesLogic(dbLocal);

            //var listUser = bisnesLogic.getAllOrders().Count;
            HomeBugaltery homeBugaltery = HomeBugaltery.getInstance();

            Assert.AreEqual(11, homeBugaltery.ListOrders.Count);
        }
コード例 #8
0
ファイル: Test.cs プロジェクト: DLearch/HomeBookkeepingApp
        public static void addUser()
        {
            //MarketEntities dbLocal = new MarketEntities("new Connection String!!!");
            //BisnesLogic bisnesLogic = new BisnesLogic(dbLocal);
            HomeBugaltery homeBugaltery = HomeBugaltery.getInstance();
            var           listUser      = homeBugaltery.ListUsers;

            //bisnesLogic.addNewUser("em@", "Emma", "1111", 2);

            Assert.AreEqual(5, listUser);
        }
コード例 #9
0
        // int familyId;

        public ChangeCurentUserCommand(HomeBugaltery homeBugaltery, int curentUserId, string newEmail, string newName, string newPass /*, int familyId*/)
        {
            this.homeBugaltery = homeBugaltery;

            this.curentUserId = curentUserId;

            this.newEmail = newEmail;
            this.newName  = newName;
            this.newPass  = newPass;
            // this.familyId = familyId;
        }
コード例 #10
0
        public ChangeOrderCommand(HomeBugaltery homeBugaltery, int curentOrderId, string categoryName, string userName, DateTime dateOrder, decimal price, string description)
        {
            this.homeBugaltery = homeBugaltery;

            this.curentOrderId = curentOrderId;

            this.categoryName = categoryName;
            this.userName     = userName;
            this.dateOrder    = dateOrder;
            this.price        = price;
            this.description  = description;
        }
コード例 #11
0
ファイル: Test.cs プロジェクト: DLearch/HomeBookkeepingApp
        public static void changeCurentUser()
        {
            HomeBugaltery homeBugaltery = HomeBugaltery.getInstance();

            Assert.AreEqual(13, homeBugaltery.ListCategories.Count);
        }
コード例 #12
0
ファイル: Test.cs プロジェクト: DLearch/HomeBookkeepingApp
        public static void getListCategory()
        {
            HomeBugaltery homeBugaltery = HomeBugaltery.getInstance();

            Assert.AreEqual(13, homeBugaltery.ListCategories.Count);
        }
コード例 #13
0
ファイル: Test.cs プロジェクト: DLearch/HomeBookkeepingApp
        public static void getListUser()
        {
            HomeBugaltery homeBugaltery = HomeBugaltery.getInstance();

            Assert.AreEqual(5, homeBugaltery.ListUsers.Count);
        }
コード例 #14
0
 public AddCategoryCommand(HomeBugaltery homeBugaltery, string categoryName, bool type)
 {
     this.homeBugaltery = homeBugaltery;
     this.categoryName  = categoryName;
     this.type          = type;
 }