6 instantiations of TestDto
Aspire.Hosting.RemoteHost.Tests (6)
17 references to TestDto
Aspire.Hosting.RemoteHost.Tests (17)
AtsMarshallerTests.cs (17)
23new AtsDtoTypeInfo { TypeId = "test/TestDto", Name = "TestDto", ClrType = typeof(TestDto), Properties = [] },
25new AtsDtoTypeInfo { TypeId = "test/TestDto", Name = "TestDto", ClrType = typeof(TestDto), Properties = [] },
796var result = marshaller.UnmarshalFromJson(json, typeof(TestDto), context);
799var dto = Assert.IsType<TestDto>(result);
837var dto = new TestDto { Name = "test", Count = 10 };
1053var dto = new TestDto { Name = "original", Count = 0 };
1056marshaller.ApplyDtoProperties(source, dto, typeof(TestDto));
1066var dto = new TestDto { Name = "original", Count = 10 };
1069marshaller.ApplyDtoProperties(source, dto, typeof(TestDto));
1083var dto = new TestDto();
1086marshaller.ApplyDtoProperties(source, dto, typeof(TestDto));
1097var dto = new TestDto { Count = 3 };
1100Assert.Throws<InvalidCastException>(() => marshaller.ApplyDtoProperties(source, dto, typeof(TestDto)));
1177var dto = new TestDto { Name = "original", Count = 10 };
1181marshaller.ApplyDtoProperties(source, dto, typeof(TestDto));
1209Assert.True(marshaller.IsDtoType(typeof(TestDto)));