9using System.Collections.Generic;
17using Microsoft.VisualStudio.TestTools.UnitTesting;
20using TestClass = NUnit.Framework.TestFixtureAttribute;
21using TestInitialize = NUnit.Framework.SetUpAttribute;
22using TestCleanup = NUnit.Framework.TearDownAttribute;
23using TestMethod = NUnit.Framework.TestAttribute;
37 _testDIContext = TestDIContextFactory.CreateDefaultContext();
51 applicationContext = _testDIContext.CreateTestApplicationContext();
64 IServiceCollection services =
new ServiceCollection();
65 services.AddCsla(o => o
66 .Serialization(o => o.SerializationFormatter(typeof(
CustomFormatter))));
67 var provider = services.BuildServiceProvider();
78 IServiceCollection services =
new ServiceCollection();
79 services.AddCsla(o => o
81 var provider = services.BuildServiceProvider();
89 public object Deserialize(Stream serializationStream) =>
throw new NotImplementedException();
90 public object Deserialize(
byte[] serializationStream) =>
throw new NotImplementedException();
91 public void Serialize(Stream serializationStream,
object graph) =>
throw new NotImplementedException();
92 public byte[]
Serialize(
object graph) =>
throw new NotImplementedException();
Provides consistent context information between the client and server DataPortal objects.
static Type SerializationFormatter
Gets the serialization formatter type used by CSLA .NET for all explicit object serialization (such a...
void UseCustomFormatter()
void UseMobileFormatter()
void CorrectDefaultSerializer()
static void ClassInitialize(TestContext context)
Type to carry context information for DI in unit tests