public static void addCategory() { HomeBugaltery homeBugaltery = HomeBugaltery.getInstance(); // homeBugaltery.addCategory("Подарунок", true); Assert.AreEqual(13, homeBugaltery.ListCategories.Count); }
public static void addOrder() { HomeBugaltery homeBugaltery = HomeBugaltery.getInstance(); // homeBugaltery.addOrder("Зарплата", "Руслан", 2017-09-10, 350, 1); Assert.AreEqual(13, homeBugaltery.ListCategories.Count); }
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; }
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; }
public ChangeCategoryCommand(HomeBugaltery homeBugaltery, int curentCategoryId, string newName, bool newType) { this.homeBugaltery = homeBugaltery; this.curentCategoryId = curentCategoryId; this.newName = newName; this.newType = newType; }
static public HomeBugaltery getInstance() { if (instance == null) { instance = new HomeBugaltery(); } return(instance); }
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); }
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); }
// 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; }
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; }
public static void changeCurentUser() { HomeBugaltery homeBugaltery = HomeBugaltery.getInstance(); Assert.AreEqual(13, homeBugaltery.ListCategories.Count); }
public static void getListCategory() { HomeBugaltery homeBugaltery = HomeBugaltery.getInstance(); Assert.AreEqual(13, homeBugaltery.ListCategories.Count); }
public static void getListUser() { HomeBugaltery homeBugaltery = HomeBugaltery.getInstance(); Assert.AreEqual(5, homeBugaltery.ListUsers.Count); }
public AddCategoryCommand(HomeBugaltery homeBugaltery, string categoryName, bool type) { this.homeBugaltery = homeBugaltery; this.categoryName = categoryName; this.type = type; }