Search in sources :

Example 1 with AutenticationImpl

use of com.teachMeSkills.an15.LashkevichGeorgy.hw6.task3.service.Impl.AutenticationImpl in project AN15 by IharDubkou.

the class Main method main.

public static void main(String[] args) {
    Basket basket = new Basket();
    Product product = new Product();
    Product product1 = new Product();
    Product product2 = new Product();
    product.setPrice(100);
    product.setRating(1);
    product.setName("Limon");
    product1.setPrice(200);
    product1.setRating(13);
    product1.setName("Orange");
    product2.setPrice(300);
    product2.setRating(7);
    product2.setName("Banana");
    Product[] products = new Product[] { product, product1, product2 };
    System.out.println(Arrays.toString(products));
    User user = new User();
    user.setLogin("Ybivator");
    user.setPassword("ybiica007");
    user.setBasket(basket);
    AuthenticationService authenticationService = new AutenticationImpl();
    authenticationService.authentication(user);
    Category category = new Category();
    category.setName("Овощи");
}
Also used : User(com.teachMeSkills.an15.LashkevichGeorgy.hw6.task3.classes.User) Category(com.teachMeSkills.an15.LashkevichGeorgy.hw6.task3.classes.Category) AutenticationImpl(com.teachMeSkills.an15.LashkevichGeorgy.hw6.task3.service.Impl.AutenticationImpl) Product(com.teachMeSkills.an15.LashkevichGeorgy.hw6.task3.classes.Product) Basket(com.teachMeSkills.an15.LashkevichGeorgy.hw6.task3.classes.Basket) AuthenticationService(com.teachMeSkills.an15.LashkevichGeorgy.hw6.task3.service.AuthenticationService)

Aggregations

Basket (com.teachMeSkills.an15.LashkevichGeorgy.hw6.task3.classes.Basket)1 Category (com.teachMeSkills.an15.LashkevichGeorgy.hw6.task3.classes.Category)1 Product (com.teachMeSkills.an15.LashkevichGeorgy.hw6.task3.classes.Product)1 User (com.teachMeSkills.an15.LashkevichGeorgy.hw6.task3.classes.User)1 AuthenticationService (com.teachMeSkills.an15.LashkevichGeorgy.hw6.task3.service.AuthenticationService)1 AutenticationImpl (com.teachMeSkills.an15.LashkevichGeorgy.hw6.task3.service.Impl.AutenticationImpl)1