This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Feature: Home | |
Como comprador | |
Quiero buscar teléfonos | |
Scenario: Busqueda de xoom | |
Given Estoy en "phones" | |
When Yo busco "xoom" | |
Then Veo "2" resultados |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Feature: Home | |
Como comprador | |
Quiero buscar teléfonos | |
Scenario: Titulo en la home | |
Given Estoy en "phones" | |
Then El título es "Google Phone Gallery" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class FileLoader : IFileLoader | |
{ | |
public Stream Load(string fileName) | |
{ | |
return new FileStream(fileName, FileMode.Open); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class ProductRepository : IProductRepository | |
{ | |
public IEnumerable<Product> GetByFileName(string fileName) | |
{ | |
var products = new List<Product>(); | |
using (var fs = new FileStream(fileName, FileMode.Open)) | |
{ | |
var reader = XmlReader.Create(fs); | |
while (reader.Read()) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class ProductRepository : IProductRepository | |
{ | |
private readonly IFileLoader loader; | |
private readonly IProductsMapper mapper; | |
public ProductRepository() | |
{ | |
loader = new FileLoader(); | |
mapper = new ProductsMapper(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private void btnLoad_Click(object sender, EventArgs e) | |
{ | |
listView1.Items.Clear(); | |
var fileName = txtFileName.Text; | |
using (var fs = new FileStream(fileName, FileMode.Open)) | |
{ | |
var reader = XmlReader.Create(fs); | |
while (reader.Read()) | |
{ | |
if (reader.Name != "product") continue; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[TestFixture] | |
class FilterTest | |
{ | |
[Test] | |
public void filterByBlue_return_2() | |
{ | |
// arrange | |
ProductFilter filter = new ProductFilter(); | |
IList<Product> products = BuildProducts(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[TestFixture] | |
class FilterTest | |
{ | |
[Test] | |
public void filterByBlue_return_2() | |
{ | |
// arrange | |
ProductFilter filter = new ProductFilter(); | |
IList<Product> products = BuildProducts(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ready: function (element, options) { | |
backColor = options.item.BackColor; | |
var detailHeader = element.querySelector('#detailHeader'); | |
detailHeader.style.msGridColumns = '80px 1fr 325px;'; //'1fr 300px'; | |
detailHeader.style.backgroundColor = backColor; | |
backButton.className = "win-backbutton backbutton"; | |
var zoomIn = document.querySelector("#zoomIn"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ready: function (element, options) { | |
currentSection = options.item; | |
setHeader(element, currentSection.BackColor); | |
setAppbarButton(currentSection); | |
this.updateLayout(element, Windows.UI.ViewManagement.ApplicationView.value); | |
buildNews(feedToShow); | |
}, |
OlderNewer