This file contains hidden or 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
| using System; | |
| using System.Collections.Generic; | |
| using FakeItEasy; | |
| using NUnit.Framework; | |
| using Simple.Data.FakeResult; | |
| namespace TestingWithSimpleDataFakeResult | |
| { | |
| [TestFixture] | |
| public class RepositoryUsingSimpleDataTests |
This file contains hidden or 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
| using System; | |
| using System.Collections.Generic; | |
| using FakeItEasy; | |
| using NUnit.Framework; | |
| using Simple.Data.FakeResult; | |
| namespace TestingWithSimpleDataFakeResult | |
| { | |
| [TestFixture] | |
| public class RepositoryUsingSimpleDataTests |
This file contains hidden or 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
| [Fact] | |
| public void Can_assert_on_a_part_of_a_longer_method_chain() | |
| { | |
| dynamic fakeResult = FakeResult.For | |
| .Table | |
| .FindAll() | |
| .OrderById() | |
| .Returns(); | |
| fakeResult.Table |
This file contains hidden or 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
| [Fact] | |
| public void using_the_table_property_only() | |
| { | |
| dynamic fakeResult = FakeResult.For.Table | |
| .Returns(new List<User> {Name = "User 1", Name = "User 2", Name= "User 3"}); | |
| fakeResult.Table | |
| .FindAllByName() | |
| .OrderByName | |
| .JoinOnOrdersById() |
This file contains hidden or 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
| // I run this join and get a | |
| // Simple.Data.Ado.AdoAdapterException : The multi-part identifier "dbo.Categories.Name" could not be bound. | |
| // -- from a System.Data.SqlClient.SqlException : The multi-part identifier "dbo.Categories.Name" could not be bound. | |
| result = db.Items.FindAll(db.Items.UserId == userId && | |
| db.Items.Categories.Name == category) | |
| .Cast<ListItemsViewModel>(); | |
| // On these tables | |
| CREATE TABLE [dbo].[Users]( |
This file contains hidden or 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
| <!doctype html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8" /> | |
| <title>whimree - Create new Item</title> | |
| </head> | |
| <body> | |
| <h1>whimree - All items for @Model[0].UserName</h1> | |
| <table> | |
| <thead> |
This file contains hidden or 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
| /** | |
| * The first commented line is your dabblet’s title | |
| */ | |
| background: #f00; | |
| background: linear-gradient(45deg, #f14, yellow); | |
| min-height:100%; |
This file contains hidden or 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
| [ | |
| { | |
| "IsContent": false, | |
| "Name": "Feature Crawler Tests", | |
| "OriginalLocation": { | |
| "OriginalPath": "FakeFolderStructures\\FeatureCrawlerTests", | |
| "FullPath": "C:\\Dev\\pickles\\src\\Pickles\\Pickles.Test\\bin\\Release\\FakeFolderStructures\\FeatureCrawlerTests" | |
| }, | |
| "OriginalLocationUrl": "file:///C:/Dev/pickles/src/Pickles/Pickles.Test/bin/Release/FakeFolderStructures/FeatureCrawlerTests", |
This file contains hidden or 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
| using System; | |
| using System.Linq; | |
| using Simple.Data; | |
| using Xunit; | |
| using System.Collections.Generic; | |
| namespace AbbeSays.Tests | |
| { | |
| public class DemoTestsForJoins | |
| { |
This file contains hidden or 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
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using Xunit; | |
| namespace TriangleKata | |
| { | |
| public class SideFacts | |
| { | |
| public class length_is_valid_when_greater_than_0 |