public void FindByGuidFake() { var fakeGuid = new FakeGuid(); var query = new SqlLam <FakeGuid>(p => p.Id == fakeGuid.Id.Value); Assert.AreEqual("[FakeGuid].[Id] = @Param1", query.SqlBuilder.WhereConditions.First()); Assert.AreEqual(fakeGuid.Id.Value, query.QueryParameters.First().Value); }
/// <summary> /// Initializes a new instance of the <see cref="MarshallerChannel"/> class. /// </summary> /// <param name="strInput">The string input.</param> /// <param name="strOutput">The string output.</param> public MarshallerChannel(Stream strInput, Stream strOutput) { Guid connectionId = FakeGuid.NewGuid(); bool ign; this.SetStream(strInput, strOutput, out ign); this.FriendlyName = connectionId.ToString(); }