コード例 #1
0
        public void WriteToFileTest()
        {
            //--Arrange
            var changedItems = new List <ILoggable>();
            var customer     = new Customer(1)
            {
                EmailAddress = "*****@*****.**",
                FirstName    = "Darko",
                LastName     = "Gelevski",
                AddressList  = null
            };

            changedItems.Add(customer);

            var product = new Product(2)
            {
                ProductName        = "PS4",
                ProductDescription = "Gaming Console with the best collection of games",
                CurrentPrice       = 22000M
            };

            changedItems.Add(product);

            //--Act
            LogginService.WriteToFile(changedItems);

            //--Assert
            //--Nothing here to assert
        }
コード例 #2
0
        public void WriteToFileTest()
        {
            //-- Arrange
            var changedItems = new List <ILoggable>();
            var customer     = new Customer(1)
            {
                EmailAddress = "*****@*****.**",
                FirstName    = "mahmoud",
                LastName     = "youssef",
                AddressList  = null
            };

            changedItems.Add(customer);

            var product = new Product(2)
            {
                ProductName        = "Rake",
                ProductDescription = "Garden cake with steel head",
                CurrentPrice       = 6M
            };

            changedItems.Add(product);

            //-- Act
            LogginService.WriteToFile(changedItems);

            //-- Assert
            //-- Nothing here to Assert
        }
コード例 #3
0
        public void WriteToFile()
        {
            //Arrange
            var changedItems = new List <ILoggable>();

            var customer = new Customer(1)
            {
                EmailAddress = "*****@*****.**",
                FirstName    = "Frodo",
                LastName     = "Baggins",
                AddressList  = null
            };

            changedItems.Add(customer);

            var product = new Product(2)
            {
                ProductName        = "Rake",
                ProductDescription = "Garden Rake with Steel Head",
                CurrentPrice       = 6M
            };

            changedItems.Add(product);
            //Act
            LogginService.WriteToFile(changedItems);

            //Assert
        }
コード例 #4
0
        public void WriteToFileTest()
        {
            //Arrange
            var changeItems = new List <ILoggable>();

            var customer = new Customer(1)
            {
                EmailAddress = "*****@*****.**",
                FirstName    = "Paul",
                LastName     = "Laspapos",
                AddressList  = null
            };

            changeItems.Add(customer);

            var product = new Product(2)
            {
                ProductName  = "Water",
                Description  = "Sparkling water",
                CurrentPrice = 2.20M
            };

            changeItems.Add(product);

            //Act
            LogginService.WriteToFile(changeItems);

            //Asset
            //nothing
        }
コード例 #5
0
        public void WriteToFileTest()
        {
            // Arrange
            List <ILoggable> changeItems = new List <ILoggable>();

            Customer customer = new Customer(1)
            {
                EmailAddress  = "*****@*****.**"
                , FirstName   = "Colin"
                , LastName    = "Kish"
                , AddressList = null
            };

            changeItems.Add(customer);

            var product = new Product(1)
            {
                ProductName          = "Bike"
                , ProductDescription = "A Nice Bike"
                , CurentPrice        = 1.21M
            };

            changeItems.Add(product);

            // Act
            LogginService.WriteToFile(changeItems);

            // Assert
            // nothing here to assert
        }
コード例 #6
0
        public void WriteToFileTest()
        {
            var changedItems = new List <ILoggable>();

            var customer = new CustomerDetails2(1)
            {
                EmailAdrress = "*****@*****.**",
                FirstName    = "Bobo ",
                LastName     = "Smrad",
                AddressList  = null
            };

            changedItems.Add(customer);

            var product = new Product(2)
            {
                ProductName        = "Lightsaber",
                ProductDescription = "An elegant weapon for a more civilized age...",
                CurrentPrice       = 66
            };

            changedItems.Add(product);

            LogginService.WriteToFile(changedItems);
        }
コード例 #7
0
        public void WriteToFileTest()
        {
            var changedItems = new List <ILoggable>();

            var customer = new Customer(1);

            customer.FirstName = "Harry";
            customer.LastName  = "Potter";

            var product = new Product(2);

            product.ProductName        = "Cerveja Amanteigada";
            product.ProductDescription = "A famosa Cerveja Amanteigada";
            product.CurrentPrice       = 30.00M;

            changedItems.Add(product);
            changedItems.Add(customer);

            LogginService.WriteToFile(changedItems);
        }
コード例 #8
0
        public void WriteToFileTest()
        {
            var changedItems = new List <ILoggable>();

            var customer = new Customer(1)
            {
                EmailAddress = "*****@*****.**",
                FirstName    = "Mario",
                LastName     = "Rendon",
                AddressList  = null
            };

            changedItems.Add(customer);

            var product = new Product(2)
            {
                ProductName        = "Rake",
                ProductDescription = "Garden Rake with steel head",
                CurrentPrice       = 6M
            };

            changedItems.Add(product);
            LogginService.WriteToFile(changedItems);
        }