Skip to content

Instantly share code, notes, and snippets.

@ZhaoRd
ZhaoRd / table demo
Created October 12, 2018 09:35
antd for vue tsx render table
private renderContent(value:any, record: any, index: number) {
const obj = {
children: value,
attrs: {},
};
if (index === 4) {
obj.attrs.colSpan = 0;
}
return obj;
@ZhaoRd
ZhaoRd / DemoModule
Created October 10, 2018 03:39
abp ioc named
public class DemoModule : AbpModule
{
public override void PreInitialize()
{
IocManager.AddConventionalRegistrar(new NamedConventionalRegistrar());
}
public override void Initialize()
{
this.IocManager.RegisterAssemblyByConvention(Assembly.GetExecutingAssembly());
@ZhaoRd
ZhaoRd / AutoNSubstituteDemo.cs
Created September 29, 2018 09:51 — forked from skalinets/AutoNSubstituteDemo.cs
AutoFixture + NSubstitute Demo
using NSubstitute;
using Ploeh.AutoFixture;
using Ploeh.AutoFixture.AutoNSubstitute;
using Ploeh.AutoFixture.Xunit;
using Xunit.Extensions;
namespace AutofixtureDemo
{
public class AutoNSubstituteDemo
{