[seasar-dotnet:162] Re: IS2Container.Registerで登録すると自動バインディングされないことがある

Toru Uetani goodspeed @ mail.name
2006年 4月 1日 (土) 02:04:24 JST


お世話になっております、上谷です。

申し訳ありません、さきほど送信したメールにテストコードが一部抜けていました。
お詫びして訂正します。


以下MSTestを使用したテストコードの追加です。

-- テストコード ------------------------------------------------

namespace TestProject1 {
public interface ITop {
IMiddle Middle { get;set;}
}
public class TopImpl : ITop {
private IMiddle _middle;
public IMiddle Middle {
get { return _middle; }
set { _middle = value; }
}
}
public interface IMiddle {
IBottom Bottom { get;set;}
}
public class MiddleImpl : IMiddle {
private IBottom _bottom;
public IBottom Bottom {
get { return _bottom; }
set { _bottom = value; }
}
}
public interface IBottom { }
public class BottomImpl : IBottom { }
}

-- 
┏┏┏┏┏┏┏┏┏┏┏┏┏┏┏┏┏┏┏┏┏┏┏┏┏┏┏┏┏
            
 ┏━━━┓ 上谷 徹(Toru Uetani)
 ┃\_/┃ mail:goodspeed @ mail.name
 ┗━━━┛ 
┏┏┏┏┏┏┏┏┏┏┏┏┏┏┏┏┏┏┏┏┏┏┏┏┏┏┏┏┏



seasar-dotnet メーリングリストの案内