//idとpasswordが存在する場合、認証成功。(matterを生成) public string MatterRequest(){ if (IsNullIdWithPass(this.id)) return "AuthenticateProxy: can not access"; else if(IsNullIdWithPass(this.password)) return "AuthenticateProxy: can not access"; else //MatterのRequest()を呼ぶために生成 matter = new Matter( ); return "AuthenticateProxy: Success Authenticated"; }
public void Create(IMatter matter) { _context.Matters.Add(new Matter { matter_name = matter.Name, network_matter_number = matter.NetworkMatterNumber, network_work_area = matter.Workarea, responsible_professional = matter.ResponsibleProfessional }); _context.SaveChanges(); }
private static void ExecuteBuilderDesignPattern() { Console.ForegroundColor = ConsoleColor.DarkGreen; Console.WriteLine("BUILDER PATTERN \n"); Console.ForegroundColor = ConsoleColor.White; IMatterBuilder builder = new BondBuilder(); MatterBuilderDirector Director = new MatterBuilderDirector(builder); IMatter bond = Director.ConstructMatter(); Console.WriteLine("MORTGAGORS: {0}", String.Join("; ", bond.Morgagors.ToArray())); Console.WriteLine("PARTIES: {0}", String.Join("; ", bond.Parties.ToArray())); Console.WriteLine("PROPERTIES: {0}", String.Join("; ", bond.Properties.ToArray())); Console.WriteLine("FINANCIALS: "); bond.Financials.ToList().ForEach(fin => { Console.WriteLine($"{fin.Key} : {fin.Value}"); }); Console.WriteLine("------------------- \n"); }
public void Add(IMatter matter) => Matters.Add(matter);