Release Infra.Standard 2.1.0.17

–NEW– 
 

Methods

 
New IO.GetDrivesInfo – Get a list of Drives Info
New IO.GetDrivesNames – Get a list of drives names
New IO.GetPathDirectories – Get a list of directories on path
New IO.GetPathFiles – Get a list of files on path
New IO.GetPathAllFiles – Get list of files in path and subfolder
 

Nuget Package: maqdel.Infra.Standard

Project page: maqdel.Infra

Release Infra.Standard 2.1.0.16

–NEW– 
 

Methods

Extensions.CharacterCount – Get character count.
Extensions.ToCapitalize – Capitalize string.
Extensions.ToUniversalDateTime – To universal datetime.
Extensions.ToUniversalDate – To universal date.
Extensions.ToUniversalTime – To universal time.
Extensions.WordCount – Get word count.
 

Nuget Package: maqdel.Infra.Standard

Project page: maqdel.Infra

Release Infra.Standard 2.1.0.12

–FIX–

Method

ConsoleHelper.WriteWindow – Write a window in the console with body (avoid transparencies)

 

–NEW–
 

Method

ConsoleHelper.WriteWindow – Write a window in the console with text with TextColor
ConsoleHelper.WriteWindow – Write a window in the console with text with TextColor and BackgroundColor
ConsoleHelper.WriteWindow – Write a window in the console with body and TextColor
ConsoleHelper.WriteWindow – Write a window in the console with body and TextColor and BackgroundColor
ConsoleHelper.WriteLines – Write a set of lines in the console
ConsoleHelper.WriteLines – Write a set of lines in the console with TextColor
ConsoleHelper.WriteLines – Write a set of lines in the console with TextColor and BackgroundColor

 

Nuget Package: maqdel.Infra.Standard

Project page: maqdel.Infra

Release Infra.Standard 2.1.0.11

–UPDATE–

Method

InfraHelper.ConvertToSQLServerDate – Convert a datetime value to a string “yyyymmdd”

–NEW–
 

Method

InfraHelper.ConvertToUniversalDateTime – Convert a datetime value to a string “yyyy-mm-dd hh:mm:ss”

InfraHelper.ConvertToUniversalDate – Convert a datetime value to a string “yyyy-mm-dd”

InfraHelper.ConvertToUniversalTime – Convert a datetime value to a string “hh:mm:ss”

ConsoleHelper.WriteIn – Write text with Prefix and Sufix in a console position

ConsoleHelper.WriteIn – Write text with Prefix and Sufix in a console position with a TextColor

ConsoleHelper.WriteIn – Write text with Prefix and Sufix in a console position with a TextColor and BackgroundColor

ConsoleHelper.WriteVerticalIn – Write vertical text in a console position

ConsoleHelper.WriteVerticalIn – Write vertical text with Prefix and Sufix in a console position with a TextColor

ConsoleHelper.WriteVerticalIn – Write vertical text with Prefix and Sufix in a console position with a TextColor and BackgroundColor

ConsoleHelper.WriteVerticalIn – Write vertical text with Prefix and Sufix in a console position

ConsoleHelper.WriteVerticalIn – Write vertical text with Prefix and Sufix in a console position with a TextColor

ConsoleHelper.WriteVerticalIn – Write vertical text with Prefix and Sufix in a console position with a TextColor and BackgroundColor

ConsoleHelper.WriteWindow – Write a window in the console with text

ConsoleHelper.WriteWindow – Write a window in the console with a body

Nuget Package: maqdel.Infra.Standard

Project page: maqdel.Infra

#WTHI? Test-Driven Development (TDD)

Test-Driven Development or TDD is a software development practice or technique where the tests are done first, then the code that satisfies the tests is written, and finally the generated code is refactored; this way you get high quality code

According to Kent Beck (its creator) the premise of TDD is that all code must be continuously tested and refactored

Tests are created from use cases or project documentation, ensuring that the written code meets the needs of the project for quality and performance

The TDD cycle consists of 3 parts: RED, GREEN and REFACTOR
RED, writing a test that fails
GREEN, write the code that satisfies the test
REFACTOR, eliminate redundancy in the code

Advantages
Optimized and tested code generation
Easy identification and tracking of errors when applying code changes

Disadvantages
If the documentation does not exist or is not well defined, the tests will be inefficient and will fail in their purpose of guiding development.
You must have the necessary skills and tools to create robust tests